diff options
author | Valerie Aurora Henson <vaurora@redhat.com> | 2009-09-07 20:46:34 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-09-07 20:46:34 -0400 |
commit | 4efbac6fed75c29d3d5f1b676b932754653a2ac5 (patch) | |
tree | b5abaa3d97e473970064e649d9ed6f661b447a22 /lib/ext2fs/alloc.c | |
parent | a63745e81cbb476b90c75ca3ca60b9ba4be95cae (diff) | |
download | e2fsprogs-4efbac6fed75c29d3d5f1b676b932754653a2ac5.tar.gz |
Convert uses of super->s_*_blocks_count to ext2fs_*_blocks_count()
Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com>
Signed-off-by: Nick Dokos <nicholas.dokos@hp.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/alloc.c')
-rw-r--r-- | lib/ext2fs/alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ext2fs/alloc.c b/lib/ext2fs/alloc.c index 2c38bc9e..24ab05bb 100644 --- a/lib/ext2fs/alloc.c +++ b/lib/ext2fs/alloc.c @@ -157,7 +157,7 @@ errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal, map = fs->block_map; if (!map) return EXT2_ET_NO_BLOCK_BITMAP; - if (!goal || (goal >= fs->super->s_blocks_count)) + if (!goal || (goal >= ext2fs_blocks_count(fs->super))) goal = fs->super->s_first_data_block; i = goal; check_block_uninit(fs, map, @@ -175,7 +175,7 @@ errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal, return 0; } i++; - if (i >= fs->super->s_blocks_count) + if (i >= ext2fs_blocks_count(fs->super)) i = fs->super->s_first_data_block; } while (i != goal); return EXT2_ET_BLOCK_ALLOC_FAIL; @@ -269,7 +269,7 @@ errcode_t ext2fs_get_free_blocks2(ext2_filsys fs, blk64_t start, blk64_t finish, if (!num) num = 1; do { - if (b+num-1 > fs->super->s_blocks_count) + if (b+num-1 > ext2fs_blocks_count(fs->super)) b = fs->super->s_first_data_block; if (ext2fs_fast_test_block_bitmap_range2(map, b, num)) { *ret = b; |