Btrfs: reorder locks and sanity checks in btrfs_ioctl_defrag
authorIlya Dryomov <idryomov@gmail.com>
Sun, 20 Jan 2013 13:57:57 +0000 (15:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 20 Jan 2013 14:21:22 +0000 (16:21 +0200)
commit25122d15e21cf252e91e4cad7cea760f97df29f1
tree54b7e644e36135f4a2602b56c20d319cff96e625
parent4ac20c70b0734b65662ded735e5f6ba0415bdb71
Btrfs: reorder locks and sanity checks in btrfs_ioctl_defrag

Operation-specific check (whether subvol is readonly or not) should go
after the mutual exclusiveness check.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/ioctl.c