Btrfs: fix off-by-one in fiemap
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 1 May 2013 16:23:41 +0000 (16:23 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 17 May 2013 20:27:26 +0000 (16:27 -0400)
commita52f4cd2b1a863a42c1cb268b1cddad451cdfede
tree5b54a8cbf8537fef67adb8d5b9a5b52783bc37ee
parent60b62978bc5e903cd487de34972fb30f76c74a2e
Btrfs: fix off-by-one in fiemap

lock_extent/unlock_extent expect an exclusive end.

Tested-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent_io.c