patch-2.1.123 linux/fs/ext2/balloc.c
Next file: linux/fs/ext2/super.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Sep 25 23:02:42 1998
- Orig file:
v2.1.122/linux/fs/ext2/balloc.c
- Orig date:
Wed Aug 26 11:37:40 1998
diff -u --recursive --new-file v2.1.122/linux/fs/ext2/balloc.c linux/fs/ext2/balloc.c
@@ -686,6 +686,12 @@
}
}
+int ext2_group_sparse(int group)
+{
+ return (test_root(group, 3) || test_root(group, 5) ||
+ test_root(group, 7));
+}
+
void ext2_check_blocks_bitmap (struct super_block * sb)
{
struct buffer_head * bh;
@@ -716,7 +722,7 @@
if (!(le32_to_cpu(sb->u.ext2_sb.s_feature_ro_compat) &
EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER) ||
- (test_root(i, 3) || test_root(i, 5) || test_root(i, 7))) {
+ ext2_group_sparse(i)) {
if (!ext2_test_bit (0, bh->b_data))
ext2_error (sb, "ext2_check_blocks_bitmap",
"Superblock in group %d "
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov