summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-07-01 01:14:57 +0200
committerTheodore Ts'o <tytso@mit.edu>2012-07-01 01:14:57 +0200
commitf6fb99cadcd44660c68e13f6eab28333653621e6 (patch)
tree4075bd09e5ec75bbeaa9d0ca498e50cfb0c45dfe /fs/ext4/ialloc.c
parentext4: honor O_(D)SYNC semantic in ext4_fallocate() (diff)
downloadlinux-f6fb99cadcd44660c68e13f6eab28333653621e6.tar.xz
linux-f6fb99cadcd44660c68e13f6eab28333653621e6.zip
ext4: pass a char * to ext4_count_free() instead of a buffer_head ptr
Make it possible for ext4_count_free to operate on buffers and not just data in buffer_heads. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r--fs/ext4/ialloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index d48e8b14928c..6866bc233e94 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -1054,7 +1054,8 @@ unsigned long ext4_count_free_inodes(struct super_block *sb)
if (!bitmap_bh)
continue;
- x = ext4_count_free(bitmap_bh, EXT4_INODES_PER_GROUP(sb) / 8);
+ x = ext4_count_free(bitmap_bh->b_data,
+ EXT4_INODES_PER_GROUP(sb) / 8);
printk(KERN_DEBUG "group %lu: stored = %d, counted = %lu\n",
(unsigned long) i, ext4_free_inodes_count(sb, gdp), x);
bitmap_count += x;