]> git.baikalelectronics.ru Git - kernel.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>
Tue, 9 Oct 2012 00:07:32 +0000 (20:07 -0400)
commit356117644815c01cbf3beae7a7b4630c4f27e8ee
tree3833ab0e8a2932c58e227947e7f216da64a1da49
parent70145b4aa47ab24f2a2c371cfb03e9f22138f9c4
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