]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf84d2cf52f6a4490f76d1c0711c3eba8e4476de
tree6edc6e3638d09d7d8dd462528f26f6e78f030610
parent0b9bb322a7dbffaaaa765ff6850a2403d0e7316e
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