btrfs: ioctl: reorder exclusive op check in RM_DEV
authorDavid Sterba <dsterba@suse.cz>
Thu, 28 Apr 2016 09:59:34 +0000 (11:59 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 12:58:00 +0000 (14:58 +0200)
commit2355ac8495c1fb8ae58bdfe191489682538c697d
tree0c291e739086cc60cb486decf05219fc2e649877
parent58409edd2d5cc24716cb9ce690803696c5118503
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