|
@@ -4301,7 +4301,8 @@ int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
|
* will return the blocks that include the delayed allocation
|
|
* will return the blocks that include the delayed allocation
|
|
* blocks for this file.
|
|
* 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;
|
|
stat->blocks += (delalloc_blocks << inode->i_sb->s_blocksize_bits)>>9;
|
|
return 0;
|
|
return 0;
|