summaryrefslogtreecommitdiff
path: root/e2fsck
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-10-25 21:42:12 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-10-25 21:42:12 -0400
commitcd65a24e756b8f6770a5961fd94c67eb00dd7baa (patch)
treedf9e187fff26d8ebc95f40d9c86062b30630c4bf /e2fsck
parente633b58ac75f2f544b7d6572e37d4b63da31e59c (diff)
downloade2fsprogs-cd65a24e756b8f6770a5961fd94c67eb00dd7baa.tar.gz
libext2fs: Convert ext2fs_bg_flag_test() to ext2fs_bg_flags_test()
After cleaning up ext2fs_bg_flag_set() and ext2fs_bg_flag_clear(), we're left with ext2fs_bg_flag_test(). Convert it to ext2fs_bg_flags_test(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck')
-rw-r--r--e2fsck/pass2.c2
-rw-r--r--e2fsck/pass5.c8
-rw-r--r--e2fsck/super.c10
3 files changed, 10 insertions, 10 deletions
diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c
index d45ff744..cbf1457a 100644
--- a/e2fsck/pass2.c
+++ b/e2fsck/pass2.c
@@ -987,7 +987,7 @@ out_htree:
* we could call a function in pass1.c that checks the
* newly visible inodes.
*/
- if (ext2fs_bg_flag_test(fs, group, EXT2_BG_INODE_UNINIT)) {
+ if (ext2fs_bg_flags_test(fs, group, EXT2_BG_INODE_UNINIT)) {
pctx.num = dirent->inode;
if (fix_problem(ctx, PR_2_INOREF_BG_INO_UNINIT,
&cd->pctx)){
diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c
index aee4e5fa..ef8e1412 100644
--- a/e2fsck/pass5.c
+++ b/e2fsck/pass5.c
@@ -162,7 +162,7 @@ redo_counts:
save_problem = 0;
pctx.blk = pctx.blk2 = NO_BLK;
if (csum_flag &&
- (ext2fs_bg_flag_test(fs, group, EXT2_BG_BLOCK_UNINIT)))
+ (ext2fs_bg_flags_test(fs, group, EXT2_BG_BLOCK_UNINIT)))
skip_group++;
for (i = fs->super->s_first_data_block;
i < ext2fs_blocks_count(fs->super);
@@ -300,7 +300,7 @@ redo_counts:
goto errout;
if (csum_flag &&
(i != ext2fs_blocks_count(fs->super)-1) &&
- ext2fs_bg_flag_test(fs, group,
+ ext2fs_bg_flags_test(fs, group,
EXT2_BG_BLOCK_UNINIT))
skip_group++;
}
@@ -423,7 +423,7 @@ redo_counts:
save_problem = 0;
pctx.ino = pctx.ino2 = 0;
if (csum_flag &&
- (ext2fs_bg_flag_test(fs, group, EXT2_BG_INODE_UNINIT)))
+ (ext2fs_bg_flags_test(fs, group, EXT2_BG_INODE_UNINIT)))
skip_group++;
/* Protect loop from wrap-around if inodes_count is maxed */
@@ -526,7 +526,7 @@ do_counts:
goto errout;
if (csum_flag &&
(i != fs->super->s_inodes_count) &&
- (ext2fs_bg_flag_test(fs, group, EXT2_BG_INODE_UNINIT)
+ (ext2fs_bg_flags_test(fs, group, EXT2_BG_INODE_UNINIT)
))
skip_group++;
}
diff --git a/e2fsck/super.c b/e2fsck/super.c
index b10539a9..fbc8b8a2 100644
--- a/e2fsck/super.c
+++ b/e2fsck/super.c
@@ -647,8 +647,8 @@ void check_super_block(e2fsck_t ctx)
}
if (!csum_flag &&
- (ext2fs_bg_flag_test(fs, i, EXT2_BG_BLOCK_UNINIT) ||
- ext2fs_bg_flag_test(fs, i, EXT2_BG_INODE_UNINIT) ||
+ (ext2fs_bg_flags_test(fs, i, EXT2_BG_BLOCK_UNINIT) ||
+ ext2fs_bg_flags_test(fs, i, EXT2_BG_INODE_UNINIT) ||
gd->bg_itable_unused != 0)){
if (fix_problem(ctx, PR_0_GDT_UNINIT, &pctx)) {
ext2fs_bg_flags_clear(fs, i, EXT2_BG_BLOCK_UNINIT);
@@ -660,7 +660,7 @@ void check_super_block(e2fsck_t ctx)
}
if (i == fs->group_desc_count - 1 &&
- ext2fs_bg_flag_test(fs, i, EXT2_BG_BLOCK_UNINIT)) {
+ ext2fs_bg_flags_test(fs, i, EXT2_BG_BLOCK_UNINIT)) {
if (fix_problem(ctx, PR_0_BB_UNINIT_LAST, &pctx)) {
ext2fs_bg_flags_clear(fs, i, EXT2_BG_BLOCK_UNINIT);
should_be = 1;
@@ -668,8 +668,8 @@ void check_super_block(e2fsck_t ctx)
ext2fs_unmark_valid(fs);
}
- if (ext2fs_bg_flag_test(fs, i, EXT2_BG_BLOCK_UNINIT) &&
- !ext2fs_bg_flag_test(fs, i, EXT2_BG_INODE_UNINIT)) {
+ if (ext2fs_bg_flags_test(fs, i, EXT2_BG_BLOCK_UNINIT) &&
+ !ext2fs_bg_flags_test(fs, i, EXT2_BG_INODE_UNINIT)) {
if (fix_problem(ctx, PR_0_BB_UNINIT_IB_INIT, &pctx)) {
ext2fs_bg_flags_clear(fs, i, EXT2_BG_BLOCK_UNINIT);
should_be = 1;