From 8d9399fd358aa089d8caf123b86d74adef113df1 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 25 Dec 2012 13:56:01 -0500 Subject: [PATCH] --- yaml --- r: 348106 b: refs/heads/master c: 0875a2b448fcaba67010850cf9649293a5ef653d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/super.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 987a019f2e63..f3be8f671203 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a28a9178e8fcd9b94f7333184ce78e816c8cb2af +refs/heads/master: 0875a2b448fcaba67010850cf9649293a5ef653d diff --git a/trunk/fs/ext4/super.c b/trunk/fs/ext4/super.c index e09f7d1646ba..4969167ac267 100644 --- a/trunk/fs/ext4/super.c +++ b/trunk/fs/ext4/super.c @@ -3231,6 +3231,10 @@ int ext4_calculate_overhead(struct super_block *sb) memset(buf, 0, PAGE_SIZE); cond_resched(); } + /* Add the journal blocks as well */ + if (sbi->s_journal) + overhead += EXT4_B2C(sbi, sbi->s_journal->j_maxlen); + sbi->s_overhead = overhead; smp_wmb(); free_page((unsigned long) buf);