mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
Btrfs: Align extent length to sectorsize in
--- Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
5a01a2e3a9
commit
b1632b10c0
@ -823,6 +823,8 @@ search_again:
|
||||
btrfs_file_extent_num_bytes(leaf, fi);
|
||||
extent_num_bytes = inode->i_size -
|
||||
found_key.offset + root->sectorsize - 1;
|
||||
extent_num_bytes = extent_num_bytes &
|
||||
~((u64)root->sectorsize - 1);
|
||||
btrfs_set_file_extent_num_bytes(leaf, fi,
|
||||
extent_num_bytes);
|
||||
num_dec = (orig_num_bytes -
|
||||
|
Loading…
Reference in New Issue
Block a user