aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 04c66907b2fe..f2d5ec77c1e9 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3648,13 +3648,11 @@ static int ext4_statfs(struct dentry *dentry, struct kstatfs *buf)
3648 buf->f_blocks = ext4_blocks_count(es) - sbi->s_overhead_last; 3648 buf->f_blocks = ext4_blocks_count(es) - sbi->s_overhead_last;
3649 buf->f_bfree = percpu_counter_sum_positive(&sbi->s_freeblocks_counter) - 3649 buf->f_bfree = percpu_counter_sum_positive(&sbi->s_freeblocks_counter) -
3650 percpu_counter_sum_positive(&sbi->s_dirtyblocks_counter); 3650 percpu_counter_sum_positive(&sbi->s_dirtyblocks_counter);
3651 ext4_free_blocks_count_set(es, buf->f_bfree);
3652 buf->f_bavail = buf->f_bfree - ext4_r_blocks_count(es); 3651 buf->f_bavail = buf->f_bfree - ext4_r_blocks_count(es);
3653 if (buf->f_bfree < ext4_r_blocks_count(es)) 3652 if (buf->f_bfree < ext4_r_blocks_count(es))
3654 buf->f_bavail = 0; 3653 buf->f_bavail = 0;
3655 buf->f_files = le32_to_cpu(es->s_inodes_count); 3654 buf->f_files = le32_to_cpu(es->s_inodes_count);
3656 buf->f_ffree = percpu_counter_sum_positive(&sbi->s_freeinodes_counter); 3655 buf->f_ffree = percpu_counter_sum_positive(&sbi->s_freeinodes_counter);
3657 es->s_free_inodes_count = cpu_to_le32(buf->f_ffree);
3658 buf->f_namelen = EXT4_NAME_LEN; 3656 buf->f_namelen = EXT4_NAME_LEN;
3659 fsid = le64_to_cpup((void *)es->s_uuid) ^ 3657 fsid = le64_to_cpup((void *)es->s_uuid) ^
3660 le64_to_cpup((void *)es->s_uuid + sizeof(u64)); 3658 le64_to_cpup((void *)es->s_uuid + sizeof(u64));