summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-02-20 12:50:42 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-28 11:30:07 +0100
commit691fa059673b3b33c25d7925acb0a58e8204dbd6 (patch)
tree1862cc21c43a68ede70fba801c908db94d86b68e /fs/btrfs/free-space-cache.c
parentbtrfs: Make btrfs_delalloc_reserve_metadata take btrfs_inode (diff)
downloadlinux-691fa059673b3b33c25d7925acb0a58e8204dbd6.tar.xz
linux-691fa059673b3b33c25d7925acb0a58e8204dbd6.zip
btrfs: all btrfs_delalloc_release_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/free-space-cache.c')
-rw-r--r--fs/btrfs/free-space-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index c0f313cbbbf2..7dcf0b100dcd 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -3545,7 +3545,8 @@ int btrfs_write_out_ino_cache(struct btrfs_root *root,
if (ret) {
if (release_metadata)
- btrfs_delalloc_release_metadata(inode, inode->i_size);
+ btrfs_delalloc_release_metadata(BTRFS_I(inode),
+ inode->i_size);
#ifdef DEBUG
btrfs_err(fs_info,
"failed to write free ino cache for root %llu",