aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 5a38443a24ee..de17c61dfa0a 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -823,6 +823,8 @@ search_again:
823 btrfs_file_extent_num_bytes(leaf, fi); 823 btrfs_file_extent_num_bytes(leaf, fi);
824 extent_num_bytes = inode->i_size - 824 extent_num_bytes = inode->i_size -
825 found_key.offset + root->sectorsize - 1; 825 found_key.offset + root->sectorsize - 1;
826 extent_num_bytes = extent_num_bytes &
827 ~((u64)root->sectorsize - 1);
826 btrfs_set_file_extent_num_bytes(leaf, fi, 828 btrfs_set_file_extent_num_bytes(leaf, fi,
827 extent_num_bytes); 829 extent_num_bytes);
828 num_dec = (orig_num_bytes - 830 num_dec = (orig_num_bytes -