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)
commit5ac00addc7ac09110995fe967071d191b5981cc1
treea5290cc4e69c434b24c091a212d1723bae56e46c
parenta2bff64025d7a707ac49155bb6678a636e55096e
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