diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-16 11:07:27 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-06 16:06:58 +0100 |
commit | 27965b6c2cad220f6c512334665808bf3d895e5e (patch) | |
tree | a92dcbdbe41313083e80f6770ae049786887fbd3 /fs/btrfs/file.c | |
parent | da17066c40472c2d6a1aab7bb0090c3d285531c9 (diff) | |
download | linux-27965b6c2cad220f6c512334665808bf3d895e5e.tar.bz2 |
btrfs: root->fs_info cleanup, btrfs_calc_{trans,trunc}_metadata_size
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 1e0af55e619e..008670e3c98a 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -2369,7 +2369,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len) u64 tail_len; u64 orig_start = offset; u64 cur_offset; - u64 min_size = btrfs_calc_trunc_metadata_size(root, 1); + u64 min_size = btrfs_calc_trunc_metadata_size(root->fs_info, 1); u64 drop_end; int ret = 0; int err = 0; @@ -2516,7 +2516,7 @@ static int btrfs_punch_hole(struct inode *inode, loff_t offset, loff_t len) ret = -ENOMEM; goto out_free; } - rsv->size = btrfs_calc_trunc_metadata_size(root, 1); + rsv->size = btrfs_calc_trunc_metadata_size(root->fs_info, 1); rsv->failfast = 1; /* |