]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Btrfs: fix unlock order in btrfs_ioctl_resize
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:20 +0000 (16:21 +0200)
Fix unlock order in btrfs_ioctl_resize().

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

index 259dd52d878513e64af676ee4a1fe2cb4b2cc89e..fcf1b1b400823de809da09827ddc4c42a645b5eb 100644 (file)
@@ -1446,8 +1446,8 @@ out_free:
        kfree(vol_args);
 out:
        mutex_unlock(&root->fs_info->volume_mutex);
-       mnt_drop_write_file(file);
        atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0);
+       mnt_drop_write_file(file);
        return ret;
 }