]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/disk-io.c
btrfs: cleaner_kthread() doesn't need explicit freeze
[karo-tx-linux.git] / fs / btrfs / disk-io.c
index 8579b35bb16029c19cb0c3e19e0d836e6ba53805..ff36a33ee9caaef54092ae5b5b9483584fdfdd75 100644 (file)
@@ -1838,7 +1838,7 @@ static int cleaner_kthread(void *arg)
                 */
                btrfs_delete_unused_bgs(root->fs_info);
 sleep:
-               if (!try_to_freeze() && !again) {
+               if (!again) {
                        set_current_state(TASK_INTERRUPTIBLE);
                        if (!kthread_should_stop())
                                schedule();