aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 7bccdf32a32c..fc083e87c231 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -4301,7 +4301,8 @@ int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry,
4301 * will return the blocks that include the delayed allocation 4301 * will return the blocks that include the delayed allocation
4302 * blocks for this file. 4302 * blocks for this file.
4303 */ 4303 */
4304 delalloc_blocks = EXT4_I(inode)->i_reserved_data_blocks; 4304 delalloc_blocks = EXT4_C2B(EXT4_SB(inode->i_sb),
4305 EXT4_I(inode)->i_reserved_data_blocks);
4305 4306
4306 stat->blocks += (delalloc_blocks << inode->i_sb->s_blocksize_bits)>>9; 4307 stat->blocks += (delalloc_blocks << inode->i_sb->s_blocksize_bits)>>9;
4307 return 0; 4308 return 0;