args->root == BTRFS_I(inode)->root;
 }
 
-static struct inode *btrfs_iget_locked(struct super_block *s, u64 ino,
-                                      struct btrfs_root *root)
+static struct inode *btrfs_iget_locked(u64 ino, struct btrfs_root *root)
 {
        struct inode *inode;
        struct btrfs_iget_args args;
        args.ino = ino;
        args.root = root;
 
-       inode = iget5_locked(s, hashval, btrfs_find_actor,
+       inode = iget5_locked(root->fs_info->sb, hashval, btrfs_find_actor,
                             btrfs_init_locked_inode,
                             (void *)&args);
        return inode;
        struct inode *inode;
        int ret;
 
-       inode = btrfs_iget_locked(root->fs_info->sb, ino, root);
+       inode = btrfs_iget_locked(ino, root);
        if (!inode)
                return ERR_PTR(-ENOMEM);