]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Btrfs: Fix off by one error in dirty_and_release_pages
authorYan <yanzheng@21cn.com>
Fri, 14 Sep 2007 14:23:29 +0000 (10:23 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Fri, 14 Sep 2007 14:23:29 +0000 (10:23 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c

index ca7e5d4474e0f7f0c498e8038d10e9a9767af092..26826a543355e73ba081c9bd7302eaa2ae5a51d7 100644 (file)
@@ -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);