summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorNikolay Borisov <n.borisov.lkml@gmail.com>2017-02-20 13:50:41 +0200
committerDavid Sterba <dsterba@suse.com>2017-02-28 11:30:07 +0100
commit9f3db423f98c5c6c53b47f4bb2729901500bc330 (patch)
treea8bb0b01affe32a0ed93fe69b4d884d7c76ed87a /fs/btrfs/file.c
parent703b391a0362e0ee35260dd16d7d0c7a12fef0e6 (diff)
downloadlinux-stable-9f3db423f98c5c6c53b47f4bb2729901500bc330.tar.gz
linux-stable-9f3db423f98c5c6c53b47f4bb2729901500bc330.tar.bz2
linux-stable-9f3db423f98c5c6c53b47f4bb2729901500bc330.zip
btrfs: Make btrfs_delalloc_reserve_metadata take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@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 073bc975bbb6..e32a92081547 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1599,7 +1599,8 @@ static noinline ssize_t __btrfs_buffered_write(struct file *file,
}
}
- ret = btrfs_delalloc_reserve_metadata(inode, reserve_bytes);
+ ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode),
+ reserve_bytes);
if (ret) {
if (!only_release_metadata)
btrfs_free_reserved_data_space(inode, pos,