Btrfs: fix off-by-one in file clone
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 18 Sep 2012 09:52:23 +0000 (03:52 -0600)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 00:07:32 +0000 (20:07 -0400)
commitaa42ffd918c420d5625b25b7a0bc2bbde4c9f890
tree3833ab0e8a2932c58e227947e7f216da64a1da49
parent7e97b8daf63487c20f78487bd4045f39b0d97cf4
Btrfs: fix off-by-one in file clone

Btrfs uses inclusive range end for lock_extent(), unlock_extent() and
related functions, so we made off-by-one errors in file clone.

This fixes it and also fixes some style problems.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
fs/btrfs/ioctl.c