]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff53227db0ae4fe89ab2c738dd1fca6bc19afaf5
tree0f42d0339ab8ede3cfe6cd29efa0af702b6daa0b
parent9c80d7d7c68609e9b526f1e87fc64e3b1e36b38a
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