diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-02-15 22:28:30 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 12:03:56 +0100 |
commit | 77ab86bf1c64ab282f2230521c7d4d7f69ea3a3f (patch) | |
tree | 69cb50c98914c2bf277fefc78ec51ce23889ec5f /fs/btrfs/inode-map.c | |
parent | btrfs: convert btrfs_inc_block_group_ro to accept fs_info (diff) | |
download | linux-77ab86bf1c64ab282f2230521c7d4d7f69ea3a3f.tar.xz linux-77ab86bf1c64ab282f2230521c7d4d7f69ea3a3f.zip |
btrfs: free-space-cache, clean up unnecessary root arguments
The free space cache APIs accept a root but always use the tree root.
Also, btrfs_truncate_free_space_cache accepts a root AND an inode but
the inode always points to the root anyway, so let's just pass the inode.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r-- | fs/btrfs/inode-map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c index 144b119ff43f..3bbb8f095953 100644 --- a/fs/btrfs/inode-map.c +++ b/fs/btrfs/inode-map.c @@ -467,7 +467,7 @@ again: } if (i_size_read(inode) > 0) { - ret = btrfs_truncate_free_space_cache(root, trans, NULL, inode); + ret = btrfs_truncate_free_space_cache(trans, NULL, inode); if (ret) { if (ret != -ENOSPC) btrfs_abort_transaction(trans, ret); |