btrfs: ioctl: reorder exclusive op check in RM_DEV
authorDavid Sterba <dsterba@suse.cz>
Wed, 4 May 2016 12:10:47 +0000 (14:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commit58d7bbf81f54667e36940d5f4b5609606efa597b
treebfd7bd7baf68d7326ff4df377a5c19e889d893bd
parent7ab19625a911f7568ec85302e3aa7a64186006c8
btrfs: ioctl: reorder exclusive op check in RM_DEV

Move the op exclusivity check before the other code (same as in
ADD_DEV).

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c