summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-06-03 08:55:40 +0300
committerDavid Sterba <dsterba@suse.com>2020-07-27 12:55:36 +0200
commit86d52921a2ba51a78e5bfb71c75aedcbd9e61a5c (patch)
treeb08802c81f986bcbfb61a1d93633e08a969d73f9 /fs/btrfs/file.c
parent25ce28caaa1ddc2ef8848c5a09e63a9bc0a5d455 (diff)
downloadlinux-86d52921a2ba51a78e5bfb71c75aedcbd9e61a5c.tar.bz2
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/file.c')
-rw-r--r--fs/btrfs/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 96f2238a361b..f6c5d94f30f9 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1784,7 +1784,7 @@ again:
__pos = round_down(pos,
fs_info->sectorsize) +
(dirty_pages << PAGE_SHIFT);
- btrfs_delalloc_release_space(inode,
+ btrfs_delalloc_release_space(BTRFS_I(inode),
data_reserved, __pos,
release_bytes, true);
}
@@ -1850,7 +1850,8 @@ again:
btrfs_delalloc_release_metadata(BTRFS_I(inode),
release_bytes, true);
} else {
- btrfs_delalloc_release_space(inode, data_reserved,
+ btrfs_delalloc_release_space(BTRFS_I(inode),
+ data_reserved,
round_down(pos, fs_info->sectorsize),
release_bytes, true);
}