aboutsummaryrefslogtreecommitdiff
path: root/misc/e2image.c
diff options
context:
space:
mode:
authorValerie Aurora Henson <vaurora@redhat.com>2009-10-25 21:43:47 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-10-25 21:43:47 -0400
commitd7cca6b06f366f998ed43346f9b6fca9e163692f (patch)
tree6aeaaa439a3ec9ca1ca264244e914cd6f3782e61 /misc/e2image.c
parentcd65a24e756b8f6770a5961fd94c67eb00dd7baa (diff)
downloade2fsprogs-d7cca6b06f366f998ed43346f9b6fca9e163692f.tar.gz
Convert to use block group accessor functions
Convert direct accesses to use the following block group accessor functions: ext2fs_block_bitmap_loc(), ext2fs_inode_bitmap_loc(), ext2fs_inode_table_loc(), ext2fs_bg_itable_unused(), ext2fs_block_bitmap_loc_set(), ext2fs_inode_bitmap_loc_set(), ext2fs_inode_table_loc_set(), ext2fs_bg_free_inodes_count(), ext2fs_ext2fs_bg_used_dirs_count(), ext2fs_bg_free_inodes_count_set(), ext2fs_bg_free_blocks_count_set(), ext2fs_bg_used_dirs_count_set() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/e2image.c')
-rw-r--r--misc/e2image.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/e2image.c b/misc/e2image.c
index 3802c993..0ee2b1e8 100644
--- a/misc/e2image.c
+++ b/misc/e2image.c
@@ -267,8 +267,8 @@ static void mark_table_blocks(ext2_filsys fs)
/*
* Mark the blocks used for the inode table
*/
- if (fs->group_desc[i].bg_inode_table) {
- for (j = 0, b = fs->group_desc[i].bg_inode_table;
+ if (ext2fs_inode_table_loc(fs, i)) {
+ for (j = 0, b = ext2fs_inode_table_loc(fs, i);
j < (unsigned) fs->inode_blocks_per_group;
j++, b++)
ext2fs_mark_block_bitmap2(meta_block_map, b);
@@ -277,17 +277,17 @@ static void mark_table_blocks(ext2_filsys fs)
/*
* Mark block used for the block bitmap
*/
- if (fs->group_desc[i].bg_block_bitmap) {
+ if (ext2fs_block_bitmap_loc(fs, i)) {
ext2fs_mark_block_bitmap2(meta_block_map,
- fs->group_desc[i].bg_block_bitmap);
+ ext2fs_block_bitmap_loc(fs, i));
}
/*
* Mark block used for the inode bitmap
*/
- if (fs->group_desc[i].bg_inode_bitmap) {
+ if (ext2fs_inode_bitmap_loc(fs, i)) {
ext2fs_mark_block_bitmap2(meta_block_map,
- fs->group_desc[i].bg_inode_bitmap);
+ ext2fs_inode_bitmap_loc(fs, i));
}
}
}