aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index ca7e5d4474e0..26826a543355 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -236,7 +236,7 @@ static int dirty_and_release_pages(struct btrfs_trans_handle *trans,
236 end_pos - start_pos, p, 0); 236 end_pos - start_pos, p, 0);
237 BUG_ON(err); 237 BUG_ON(err);
238 em->start = start_pos; 238 em->start = start_pos;
239 em->end = end_pos; 239 em->end = end_pos - 1;
240 em->block_start = EXTENT_MAP_INLINE; 240 em->block_start = EXTENT_MAP_INLINE;
241 em->block_end = EXTENT_MAP_INLINE; 241 em->block_end = EXTENT_MAP_INLINE;
242 add_extent_mapping(em_tree, em); 242 add_extent_mapping(em_tree, em);