]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove root arg from btrfs_log_inode_parent
authorNikolay Borisov <nborisov@suse.com>
Tue, 27 Feb 2018 15:37:17 +0000 (17:37 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:42 +0000 (15:09 +0200)
commit5cd24a51f1a0e89ccd0e5cabc4724c73c27a5bbf
tree3e279fecf7cdd95bd660ce209099d1fcc487c312
parent17d84f04b9c8cb9e8e7609312299636af6e4ced8
btrfs: Remove root arg from btrfs_log_inode_parent

btrfs_log_inode_parent is called from 2 places (btrfs_log_dentry_safe
and btrfs_log_new_name) both of which pass inode->root as the root
argument and the inode itself. Remove the redundant root argument and
get a reference to the root directly from the inode, also remove
redundant root != inode->root check from the same function. No
functional change.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c