]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 1 Oct 2012 19:19:30 +0000 (15:19 -0400)
commit6cfd396d53ff7e8160096dac361775ec1d77a555
treef7f52e33417ef31d9d30181a592e2a9b2e6fb1d8
parent8a98691e8f68f3c13b61773ee42df308e8aa9597
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