From bfc78479eba905368328dd25fb407a81eaf63a32 Mon Sep 17 00:00:00 2001 From: Nikolay Borisov Date: Wed, 17 Feb 2021 15:12:47 +0200 Subject: btrfs: make btrfs_replace_file_extents take btrfs_inode Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba Signed-off-by: David Sterba --- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/btrfs/inode.c') diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a520775949a0..726d89c010fd 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -9919,7 +9919,7 @@ static struct btrfs_trans_handle *insert_prealloc_file_extent( goto free_qgroup; } - ret = btrfs_replace_file_extents(&inode->vfs_inode, path, file_offset, + ret = btrfs_replace_file_extents(inode, path, file_offset, file_offset + len - 1, &extent_info, &trans); btrfs_free_path(path); -- cgit v1.2.3