Commit 245d9156 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext2: fix build with DEBUG=y

From: FabF <fabian.frederick@skynet.be>
parent 2097f3a7
...@@ -663,7 +663,7 @@ unsigned long ext2_count_free_inodes (struct super_block * sb) ...@@ -663,7 +663,7 @@ unsigned long ext2_count_free_inodes (struct super_block * sb)
} }
brelse(bitmap_bh); brelse(bitmap_bh);
printk("ext2_count_free_inodes: stored = %lu, computed = %lu, %lu\n", printk("ext2_count_free_inodes: stored = %lu, computed = %lu, %lu\n",
percpu_counter_read(EXT2_SB(sb)->s_freeinodes_counter), percpu_counter_read(&EXT2_SB(sb)->s_freeinodes_counter),
desc_count, bitmap_count); desc_count, bitmap_count);
unlock_super(sb); unlock_super(sb);
return desc_count; return desc_count;
...@@ -724,7 +724,7 @@ void ext2_check_inodes_bitmap (struct super_block * sb) ...@@ -724,7 +724,7 @@ void ext2_check_inodes_bitmap (struct super_block * sb)
bitmap_count += x; bitmap_count += x;
} }
brelse(bitmap_bh); brelse(bitmap_bh);
if (percpu_counter_read(EXT2_SB(sb)->s_freeinodes_counter) != if (percpu_counter_read(&EXT2_SB(sb)->s_freeinodes_counter) !=
bitmap_count) bitmap_count)
ext2_error(sb, "ext2_check_inodes_bitmap", ext2_error(sb, "ext2_check_inodes_bitmap",
"Wrong free inodes count in super block, " "Wrong free inodes count in super block, "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment