summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2013-03-02 17:18:58 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-03-02 17:18:58 -0500
commit810da240f221d64bf90020f25941b05b378186fe (patch)
tree9fb624e43c624bf8e38077804ca2f95026c11b53 /fs/ext4/super.c
parent3e36a16375eee390a9d80f99499fe630efa08128 (diff)
downloadlinux-810da240f221d64bf90020f25941b05b378186fe.tar.bz2
ext4: convert number of blocks to clusters properly
We're using macro EXT4_B2C() to convert number of blocks to number of clusters for bigalloc file systems. However, we should be using EXT4_NUM_B2C(). Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 6ac9c8a3eb08..990ceab2e2bc 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3162,7 +3162,7 @@ int ext4_calculate_overhead(struct super_block *sb)
}
/* Add the journal blocks as well */
if (sbi->s_journal)
- overhead += EXT4_B2C(sbi, sbi->s_journal->j_maxlen);
+ overhead += EXT4_NUM_B2C(sbi, sbi->s_journal->j_maxlen);
sbi->s_overhead = overhead;
smp_wmb();