]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: disallow mutually exclusive admin operations from user mode
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 5 Nov 2012 16:54:08 +0000 (17:54 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:38 +0000 (17:15 -0500)
commit93dd205f4ba2f33b99d7d778845ccccbb2507242
treea5290cc4e69c434b24c091a212d1723bae56e46c
parent23abcfbf434e4925a0f0801ffefadeaeaa0a0551
Btrfs: disallow mutually exclusive admin operations from user mode

Btrfs admin operations that are manually started from user mode
and that cannot be executed at the same time return -EINPROGRESS.
A common way to enter and leave this locked section is introduced
since it used to be specific to the balance operation.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/ioctl.c
fs/btrfs/volumes.c