]> git.hungrycats.org Git - linux/commit
Btrfs: delayed-inode: replace root args iff only fs_info used
authorDaniel Dressler <danieru.dressler@gmail.com>
Mon, 17 Nov 2014 13:05:02 +0000 (22:05 +0900)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:30:45 +0000 (23:30 -0400)
commit8172dde323f545052bfbd275e708eba99323b70e
tree2638faf7bf73150c1df9916bda0c49bb9d4a6469
parentd07e3a85dc7623eda25afcc7ddec0d36b596b577
Btrfs: delayed-inode: replace root args iff only fs_info used

This is the second independent patch of a larger project to cleanup
btrfs's internal usage of btrfs_root. Many functions take btrfs_root
only to grab the fs_info struct.

By requiring a root these functions cause programmer overhead. That
these functions can accept any valid root is not obvious until
inspection.

This patch reduces the specificity of such functions to accept the
fs_info directly.

These patches can be applied independently and thus are not being
submitted as a patch series. There should be about 26 patches by the
project's completion. Each patch will cleanup between 1 and 34 functions
apiece.  Each patch covers a single file's functions.

This patch affects the following function(s):
  1) btrfs_wq_run_delayed_node

Signed-off-by: Daniel Dressler <danieru.dressler@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
(cherry picked from commit a585e94895ed8ab2930bfd5186ffd20301b5c703)
fs/btrfs/delayed-inode.c