Renamed lfsr_fs_size -> lfsr_fs_usage

This better matches how other filesystems refer to the number of in-use
blocks.

Which makes sense when you consider that "size" could also refer to the
configured block_count. The term "usage" avoids this ambiguity.
This commit is contained in:
Christopher Haster
2025-05-01 00:37:07 -05:00
parent 4a50c5c9ce
commit 9f2f0b92e9
3 changed files with 12 additions and 12 deletions
+8 -8
View File
@@ -472,7 +472,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -708,7 +708,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -868,7 +868,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -1134,7 +1134,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -1615,7 +1615,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -2199,7 +2199,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -2562,7 +2562,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck
@@ -3002,7 +3002,7 @@ code = '''
lfsr_fs_stat(&lfs, &fsinfo) => 0;
assert(fsinfo.block_count >= INIT_BLOCK_COUNT);
assert(fsinfo.block_count <= BLOCK_COUNT);
lfs_ssize_t used = lfsr_fs_size(&lfs);
lfs_ssize_t used = lfsr_fs_usage(&lfs);
assert(used >= 0);
// we may need to grow multiple blocks before the system gets unstuck