diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 25eb214f56ac..c917e3117842 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -9878,7 +9878,7 @@ static int start_delalloc_inodes(struct btrfs_root *root, btrfs_queue_work(root->fs_info->flush_workers, &work->work); } else { - ret = sync_inode(inode, wbc); + ret = filemap_fdatawrite_wbc(inode->i_mapping, wbc); btrfs_add_delayed_iput(inode); if (ret || wbc->nr_to_write <= 0) goto out;