]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/btrfs/extent-tree.c
Btrfs: make the snap/subv deletion end more early when the fs is R/O
[mirror_ubuntu-artful-kernel.git] / fs / btrfs / extent-tree.c
index df472ab1b5acca7b411b05bcc414913bcebcc244..b55b5fb0eb29de067ca8b3c5a9a9a6928402e537 100644 (file)
@@ -7384,7 +7384,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
        wc->reada_count = BTRFS_NODEPTRS_PER_BLOCK(root);
 
        while (1) {
-               if (!for_reloc && btrfs_fs_closing(root->fs_info)) {
+               if (!for_reloc && btrfs_need_cleaner_sleep(root)) {
                        pr_debug("btrfs: drop snapshot early exit\n");
                        err = -EAGAIN;
                        goto out_end_trans;