diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2007-10-17 00:38:25 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-10-18 00:50:02 +0200 |
commit | 308ba3ece7db82e8b8d32d6962e4d12e09c5aa41 (patch) | |
tree | 988a6a40329b2f22738560b2d56ca85f525cdee4 /fs | |
parent | ext4: Convert s_blocks_count to s_blocks_count_lo (diff) | |
download | linux-308ba3ece7db82e8b8d32d6962e4d12e09c5aa41.tar.xz linux-308ba3ece7db82e8b8d32d6962e4d12e09c5aa41.zip |
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')
-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 11e80f061cb2..b11e9e2bcd01 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; |