From: Yan Date: Fri, 14 Sep 2007 14:23:29 +0000 (-0400) Subject: Btrfs: Fix off by one error in dirty_and_release_pages X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=6af858b24c0c4e91ce0b40b5dd5fdfc1fe2dda70;p=linux-edison.git Btrfs: Fix off by one error in dirty_and_release_pages Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index ca7e5d4474e..26826a54335 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, 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);