lkml.org 
[lkml]   [2004]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2.6.7-rc1] ext2 debugger broken
From
Date
Linus,

This fixes ext2 debugger.It seems percpu_counter_read stamp moved
lately.

Regards,
FabF
diff -Naur orig/fs/ext2/ialloc.c edited/fs/ext2/ialloc.c
--- orig/fs/ext2/ialloc.c 2004-05-10 04:32:37.000000000 +0200
+++ edited/fs/ext2/ialloc.c 2004-05-24 20:09:33.000000000 +0200
@@ -663,7 +663,7 @@
}
brelse(bitmap_bh);
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);
unlock_super(sb);
return desc_count;
@@ -724,7 +724,7 @@
bitmap_count += x;
}
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)
ext2_error(sb, "ext2_check_inodes_bitmap",
"Wrong free inodes count in super block, "
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.022 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site