diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-02-20 12:50:42 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 11:30:07 +0100 |
commit | 691fa059673b3b33c25d7925acb0a58e8204dbd6 (patch) | |
tree | 1862cc21c43a68ede70fba801c908db94d86b68e /fs/btrfs/file.c | |
parent | btrfs: Make btrfs_delalloc_reserve_metadata take btrfs_inode (diff) | |
download | linux-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/file.c')
-rw-r--r-- | fs/btrfs/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index e32a92081547..0e30d14b4916 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1678,7 +1678,7 @@ again: spin_unlock(&BTRFS_I(inode)->lock); } if (only_release_metadata) { - btrfs_delalloc_release_metadata(inode, + btrfs_delalloc_release_metadata(BTRFS_I(inode), release_bytes); } else { u64 __pos; @@ -1739,7 +1739,8 @@ again: if (release_bytes) { if (only_release_metadata) { btrfs_end_write_no_snapshoting(root); - btrfs_delalloc_release_metadata(inode, release_bytes); + btrfs_delalloc_release_metadata(BTRFS_I(inode), + release_bytes); } else { btrfs_delalloc_release_space(inode, round_down(pos, fs_info->sectorsize), |