diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2007-10-16 22:38:25 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-10-17 22:50:02 (GMT) |
commit | 308ba3ece7db82e8b8d32d6962e4d12e09c5aa41 (patch) | |
tree | 988a6a40329b2f22738560b2d56ca85f525cdee4 /fs/ext4/super.c | |
parent | 6bc9feff14a2524c4bb2bac533dfd874b1533e20 (diff) | |
download | linux-fsl-qoriq-308ba3ece7db82e8b8d32d6962e4d12e09c5aa41.tar.xz |
ext4: Convert s_r_blocks_count and s_free_blocks_count
Convert s_r_blocks_count and s_free_blocks_count to
s_r_blocks_count_lo and s_free_blocks_count_lo
This helps in finding BUGs due to direct partial access of
these split 64 bit values
Also fix direct partial access in ext4 code
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 11e80f0..b11e9e2 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2709,7 +2709,7 @@ static int ext4_statfs (struct dentry * dentry, struct kstatfs * buf) buf->f_bsize = sb->s_blocksize; buf->f_blocks = ext4_blocks_count(es) - sbi->s_overhead_last; buf->f_bfree = percpu_counter_sum_positive(&sbi->s_freeblocks_counter); - es->s_free_blocks_count = cpu_to_le32(buf->f_bfree); + ext4_free_blocks_count_set(es, buf->f_bfree); buf->f_bavail = buf->f_bfree - ext4_r_blocks_count(es); if (buf->f_bfree < ext4_r_blocks_count(es)) buf->f_bavail = 0; |