Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6af858b2 authored by Yan's avatar Yan Committed by David Woodhouse
Browse files

Btrfs: Fix off by one error in dirty_and_release_pages

parent d03581f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ static int dirty_and_release_pages(struct btrfs_trans_handle *trans,
					   end_pos - start_pos, p, 0);
		BUG_ON(err);
		em->start = start_pos;
		em->end = end_pos;
		em->end = end_pos - 1;
		em->block_start = EXTENT_MAP_INLINE;
		em->block_end = EXTENT_MAP_INLINE;
		add_extent_mapping(em_tree, em);