Changeset 1b20da0 in mainline for uspace/lib/block/block.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/block.c
rdf6ded8 r1b20da0 349 349 } 350 350 351 #define CACHE_LO_WATERMARK 10 352 #define CACHE_HI_WATERMARK 20 351 #define CACHE_LO_WATERMARK 10 352 #define CACHE_HI_WATERMARK 20 353 353 static bool cache_can_grow(cache_t *cache) 354 354 { … … 555 555 rc = read_blocks(devcon, b->pba, cache->blocks_cluster, 556 556 b->data, cache->lblock_size); 557 if (rc != EOK) 557 if (rc != EOK) 558 558 b->toxic = true; 559 559 } else … … 841 841 842 842 /** Read bytes directly from the device (bypass cache) 843 * 843 * 844 844 * @param service_id Service ID of the block device. 845 845 * @param abs_offset Absolute offset in bytes where to start reading 846 846 * @param bytes Number of bytes to read 847 847 * @param data Buffer that receives the data 848 * 848 * 849 849 * @return EOK on success or an error code on failure. 850 850 */
Note:
See TracChangeset
for help on using the changeset viewer.