Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6d8fb34 authored by Chin-Tsung Cheng's avatar Chin-Tsung Cheng Committed by Jan Kara
Browse files

ext3: Count internal journal as bsddf overhead in ext3_statfs



The journal blocks of external journal device should not
be counted as overhead.

Signed-off-by: default avatarChin-Tsung Cheng <chintzung@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 410dd3cf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2828,7 +2828,8 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf)
		 */
		overhead += ngroups * (2 + sbi->s_itb_per_group);

		/* Add the journal blocks as well */
		/* Add the internal journal blocks as well */
		if (sbi->s_journal && !sbi->journal_bdev)
			overhead += sbi->s_journal->j_maxlen;

		sbi->s_overhead_last = overhead;