summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-06-03 07:55:41 +0200
committerDavid Sterba <dsterba@suse.com>2020-07-27 12:55:36 +0200
commit36ea6f3e931391c2adbb38af8c5dd4a043d26ac5 (patch)
treef8f79d2a1be47de1e934e241fa1a311343820a93 /fs/btrfs/file.c
parentbtrfs: make btrfs_delalloc_release_space take btrfs_inode (diff)
downloadlinux-36ea6f3e931391c2adbb38af8c5dd4a043d26ac5.tar.xz
linux-36ea6f3e931391c2adbb38af8c5dd4a043d26ac5.zip
btrfs: make btrfs_check_data_free_space take btrfs_inode
Instead of calling BTRFS_I on the passed vfs_inode take btrfs_inode 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index f6c5d94f30f9..841c516079a9 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1681,7 +1681,8 @@ static noinline ssize_t btrfs_buffered_write(struct kiocb *iocb,
fs_info->sectorsize);
extent_changeset_release(data_reserved);
- ret = btrfs_check_data_free_space(inode, &data_reserved, pos,
+ ret = btrfs_check_data_free_space(BTRFS_I(inode),
+ &data_reserved, pos,
write_bytes);
if (ret < 0) {
if (btrfs_check_nocow_lock(BTRFS_I(inode), pos,