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)
commitf882274b2df2a2533b4fc81713838778d4ac12d6
tree3e279fecf7cdd95bd660ce209099d1fcc487c312
parent448f3a17ac538f6e5b0fa94259cb41f3f019394f
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