Changeset 18b6a88 in mainline for uspace/srv/fs/exfat/exfat_fat.c
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_fat.c
r8ebe212 r18b6a88 142 142 */ 143 143 return block_get(block, nodep->idx->service_id, DATA_FS(bs) + 144 (nodep->lastc_cached_value-EXFAT_CLST_FIRST)*SPC(bs) +144 (nodep->lastc_cached_value - EXFAT_CLST_FIRST) * SPC(bs) + 145 145 (bn % SPC(bs)), flags); 146 146 } … … 201 201 if (!fragmented) { 202 202 rc = block_get(block, service_id, DATA_FS(bs) + 203 (fcl - EXFAT_CLST_FIRST) *SPC(bs) + bn, flags);203 (fcl - EXFAT_CLST_FIRST) * SPC(bs) + bn, flags); 204 204 } else { 205 205 max_clusters = bn / SPC(bs); … … 514 514 block_t *b; 515 515 errno_t rc; 516 blocks = ROUND_UP(nodep->size, BPS(bs)) /BPS(bs);516 blocks = ROUND_UP(nodep->size, BPS(bs)) / BPS(bs); 517 517 count = BPS(bs); 518 518
Note:
See TracChangeset
for help on using the changeset viewer.