mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Btrfs: don't change file extent's ram_bytes in btrfs_drop_extents
btrfs_drop_extents doesn't change file extent's ram_bytes in the case of booked extent. To be consistent, we should also not change ram_bytes when truncating existing extent. Signed-off-by: Yan Zheng <[email protected]>
This commit is contained in:
parent
180591bcfe
commit
1ba12553f3
1 changed files with 0 additions and 4 deletions
|
|
@ -556,10 +556,6 @@ next_slot:
|
|||
inode_sub_bytes(inode, old_num -
|
||||
new_num);
|
||||
}
|
||||
if (!compression && !encryption) {
|
||||
btrfs_set_file_extent_ram_bytes(leaf,
|
||||
extent, new_num);
|
||||
}
|
||||
btrfs_set_file_extent_num_bytes(leaf,
|
||||
extent, new_num);
|
||||
btrfs_mark_buffer_dirty(leaf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue