diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 7bccdf32a32c16143564f28ac2a2c5253e1a7c3c..fc083e87c23117561c2ca45d27eb5a75e142d9af 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -4301,7 +4301,8 @@ int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry, * will return the blocks that include the delayed allocation * blocks for this file. */ - delalloc_blocks = EXT4_I(inode)->i_reserved_data_blocks; + delalloc_blocks = EXT4_C2B(EXT4_SB(inode->i_sb), + EXT4_I(inode)->i_reserved_data_blocks); stat->blocks += (delalloc_blocks << inode->i_sb->s_blocksize_bits)>>9; return 0;