diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-06-03 07:55:40 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-07-27 12:55:36 +0200 |
commit | 86d52921a2ba51a78e5bfb71c75aedcbd9e61a5c (patch) | |
tree | b08802c81f986bcbfb61a1d93633e08a969d73f9 /fs/btrfs/reflink.c | |
parent | btrfs: make btrfs_free_reserved_data_space take btrfs_inode (diff) | |
download | linux-86d52921a2ba51a78e5bfb71c75aedcbd9e61a5c.tar.xz linux-86d52921a2ba51a78e5bfb71c75aedcbd9e61a5c.zip |
btrfs: make btrfs_delalloc_release_space take btrfs_inode
It needs btrfs_inode so take it as a parameter directly.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reflink.c')
-rw-r--r-- | fs/btrfs/reflink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/reflink.c b/fs/btrfs/reflink.c index fe3e05b51691..9da0f101548f 100644 --- a/fs/btrfs/reflink.c +++ b/fs/btrfs/reflink.c @@ -134,8 +134,8 @@ out_unlock: put_page(page); } if (ret) - btrfs_delalloc_release_space(inode, data_reserved, file_offset, - block_size, true); + btrfs_delalloc_release_space(BTRFS_I(inode), data_reserved, + file_offset, block_size, true); btrfs_delalloc_release_extents(BTRFS_I(inode), block_size); out: extent_changeset_free(data_reserved); |