aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-06-30 19:14:57 -0400
committerBen Hutchings <ben@decadent.org.uk>2012-08-02 14:37:43 +0100
commit2a129c733126dba186f325cb29041e49c6c22347 (patch)
tree92e2dc18aff5742f0106a57ec7b1b17c9d30686e /fs/ext4/ialloc.c
parent0331c3a64bd80c9fd4cb453a19d0e7c888ca50ce (diff)
downloadkernel_samsung_smdk4412-2a129c733126dba186f325cb29041e49c6c22347.zip
kernel_samsung_smdk4412-2a129c733126dba186f325cb29041e49c6c22347.tar.gz
kernel_samsung_smdk4412-2a129c733126dba186f325cb29041e49c6c22347.tar.bz2
ext4: pass a char * to ext4_count_free() instead of a buffer_head ptr
commit f6fb99cadcd44660c68e13f6eab28333653621e6 upstream. 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> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
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 8fb6844..6266799 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -1057,7 +1057,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;