Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull ext[23], udf and quota fixes from Jan Kara: "Assorted fixes in quota, ext2, ext3 & udf. Probably the most important is a fix of fs corruption issue in ext2 XIP support (OTOH xip is rarely used)" * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: ext2: Fix fs corruption in ext2_get_xip_mem() quota: info leak in quota_getquota() jbd: Revert "jbd: remove dependency on __GFP_NOFAIL" udf: fix for pathetic mount times in case of invalid file system ext3: Count journal as bsddf overhead in ext3_statfs
This commit is contained in:
@@ -2825,6 +2825,10 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf)
|
||||
* bitmap, and an inode table.
|
||||
*/
|
||||
overhead += ngroups * (2 + sbi->s_itb_per_group);
|
||||
|
||||
/* Add the journal blocks as well */
|
||||
overhead += sbi->s_journal->j_maxlen;
|
||||
|
||||
sbi->s_overhead_last = overhead;
|
||||
smp_wmb();
|
||||
sbi->s_blocks_last = le32_to_cpu(es->s_blocks_count);
|
||||
|
Reference in New Issue
Block a user