]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit224a6bbd3c92909fa6c551f6e8a5c752d04f4e40
tree54b7e644e36135f4a2602b56c20d319cff96e625
parent9504033b74366d3147985591272eb346ffc11ee3
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