Changeset 7c3fb9b in mainline for uspace/srv/fs/mfs
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- Location:
- uspace/srv/fs/mfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs.h
rfac0ac7 r7c3fb9b 106 106 unsigned zsearch; 107 107 108 /* Indicates wether if the cached number of free zones 108 /* 109 * Indicates wether if the cached number of free zones 109 110 * is to be considered valid or not. 110 111 */ 111 112 bool nfree_zones_valid; 112 /* Cached number of free zones, used to avoid to scan 113 /* 114 * Cached number of free zones, used to avoid to scan 113 115 * the whole bitmap every time the mfs_free_block_count() 114 116 * is invoked. -
uspace/srv/fs/mfs/mfs_balloc.c
rfac0ac7 r7c3fb9b 191 191 bitchunk_t *data = (bitchunk_t *) b->data; 192 192 193 /* Read the bitmap block, chunk per chunk, 193 /* 194 * Read the bitmap block, chunk per chunk, 194 195 * counting the zero bits. 195 196 */ -
uspace/srv/fs/mfs/mfs_ops.c
rfac0ac7 r7c3fb9b 246 246 247 247 if (sbi->log2_zone_size != 0) { 248 /* In MFS, file space is allocated per zones. 248 /* 249 * In MFS, file space is allocated per zones. 249 250 * Zones are a collection of consecutive blocks on disk. 250 251 * … … 776 777 777 778 if (chino->i_nlinks <= 1 && S_ISDIR(chino->i_mode)) { 778 /* The child directory will be destroyed, decrease the 779 /* 780 * The child directory will be destroyed, decrease the 779 781 * parent hard links counter. 780 782 */ … … 1239 1241 1240 1242 if (!sbi->nfree_zones_valid) { 1241 /* The cached number of free zones is not valid, 1243 /* 1244 * The cached number of free zones is not valid, 1242 1245 * we need to scan the bitmap to retrieve the 1243 1246 * current value.
Note:
See TracChangeset
for help on using the changeset viewer.