diff options
author | Yan <yanzheng@21cn.com> | 2007-09-14 10:23:29 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-09-14 10:23:29 -0400 |
commit | 6af858b24c0c4e91ce0b40b5dd5fdfc1fe2dda70 (patch) | |
tree | 826c392a0587cc9638b588646bb405e11dea0fc8 /fs/btrfs/file.c | |
parent | d03581f4345e30db078ea8f81189e8177280bbb8 (diff) |
Btrfs: Fix off by one error in dirty_and_release_pages
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
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); |