btrfs: abtract out range locking in clone ioctl()
authorMark Fasheh <mfasheh@suse.de>
Tue, 6 Aug 2013 18:42:48 +0000 (11:42 -0700)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:57 +0000 (08:04 -0400)
commit77fe20dc6291e10c3594124b4505161e701a3cc4
tree6edc6e3638d09d7d8dd462528f26f6e78f030610
parenta4fdb61e81e73991d919ff0396d256e9e67d2475
btrfs: abtract out range locking in clone ioctl()

The range locking in btrfs_ioctl_clone is trivially broken out into it's own
function. This reduces the complexity of btrfs_ioctl_clone() by a small bit
and makes that locking code available to future functions in
fs/btrfs/ioctl.c

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c