Btrfs: Count space allocated to file in bytes
This patch makes btrfs count space allocated to file in bytes instead of 512 byte sectors. Everything else in btrfs uses a byte count instead of sector sizes or blocks sizes, so this fits better. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
This commit is contained in:
@@ -3930,7 +3930,7 @@ next:
|
||||
BUG_ON(ret);
|
||||
btrfs_release_path(root, path);
|
||||
|
||||
inode->i_blocks += extent_len >> 9;
|
||||
inode_add_bytes(inode, extent_len);
|
||||
|
||||
ext_offset = 0;
|
||||
num_bytes -= extent_len;
|
||||
|
Reference in New Issue
Block a user