Btrfs: don't wait for unrelated IO to finish before relocation
[cascardo/linux.git] / fs / btrfs / super.c
index 00b8f37..89d1347 100644 (file)
@@ -1160,7 +1160,7 @@ int btrfs_sync_fs(struct super_block *sb, int wait)
                return 0;
        }
 
-       btrfs_wait_ordered_roots(fs_info, -1);
+       btrfs_wait_ordered_roots(fs_info, -1, 0, (u64)-1);
 
        trans = btrfs_attach_transaction_barrier(root);
        if (IS_ERR(trans)) {