]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/btrfs/ctree.h
btrfs: call functions that always use the same root with fs_info instead
authorJeff Mahoney <jeffm@suse.com>
Wed, 22 Jun 2016 01:16:51 +0000 (21:16 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Dec 2016 15:06:57 +0000 (16:06 +0100)
commit6bccf3ab1e1f0913268bfcd1c09cadb1f4f2857d
treea7eae4bb4dec1cd2f7b21f5010549bfaa9aaa08c
parent5b4aacefb8fbfc996e68b9b083d30f8bc0972449
btrfs: call functions that always use the same root with fs_info instead

There are many functions that are always called with the same root
argument.  Rather than passing the same root every time, we can
pass an fs_info pointer instead and have the function get the root
pointer itself.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
14 files changed:
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c
fs/btrfs/root-tree.c
fs/btrfs/super.c
fs/btrfs/transaction.c
fs/btrfs/uuid-tree.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h
include/trace/events/btrfs.h