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)
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>

No differences found