]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/ioctl.c
Btrfs: rename btrfs_start_all_delalloc_inodes
[karo-tx-linux.git] / fs / btrfs / ioctl.c
index 6523108d29844bf804a9a23cb875342ef5c4dc6e..1d04b5559e6187ef9c44cbbce406dc0798e1ae1d 100644 (file)
@@ -572,7 +572,7 @@ static int create_snapshot(struct btrfs_root *root, struct inode *dir,
        if (ret)
                return ret;
 
-       btrfs_wait_ordered_extents(root);
+       btrfs_wait_ordered_extents(root, -1);
 
        pending_snapshot = kzalloc(sizeof(*pending_snapshot), GFP_NOFS);
        if (!pending_snapshot)
@@ -4542,7 +4542,7 @@ long btrfs_ioctl(struct file *file, unsigned int
        case BTRFS_IOC_SYNC: {
                int ret;
 
-               ret = btrfs_start_all_delalloc_inodes(root->fs_info, 0);
+               ret = btrfs_start_delalloc_roots(root->fs_info, 0);
                if (ret)
                        return ret;
                ret = btrfs_sync_fs(file->f_dentry->d_sb, 1);