btrfs: simplify btrfs_wait_cache_io prototype
authorJeff Mahoney <jeffm@suse.com>
Fri, 9 Sep 2016 16:09:35 +0000 (12:09 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Dec 2016 15:06:59 +0000 (16:06 +0100)
commitafdb571890615059ed4f0625209b379aff6cb08d
tree0f42d0339ab8ede3cfe6cd29efa0af702b6daa0b
parent71ff6437c23643bfc0e8f0015538adefb30eec04
btrfs: simplify btrfs_wait_cache_io prototype

With the exception of the one case where btrfs_wait_cache_io is called
without a block group, it's called with the same arguments.  The root
argument is only used in the special case, so let's factor out the core
and simplify the call in the normal case to require a trans, block group,
and path.

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