btrfs: free-space-cache, clean up unnecessary root arguments
authorJeff Mahoney <jeffm@suse.com>
Wed, 15 Feb 2017 21:28:30 +0000 (16:28 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:56 +0000 (12:03 +0100)
commit77ab86bf1c64ab282f2230521c7d4d7f69ea3a3f
tree69cb50c98914c2bf277fefc78ec51ce23889ec5f
parent5e00f1939f6e994123589c6e3d307de02b43c914
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>
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h
fs/btrfs/inode-map.c
fs/btrfs/relocation.c