]> 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>
Thu, 4 Oct 2012 13:40:01 +0000 (09:40 -0400)
commit244a2e60ad351361a1eea60a924f3fa52c969986
tree656c602a9727d219b64c02d5ef21d73dcfc26a0f
parentc5b8d1c05fbfad9458690aee4b5267c4f9003002
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