don't bother with ->d_inode->i_sb - it's always equal to ->d_sb
... and neither can ever be NULL Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -457,7 +457,7 @@ static struct dentry *nilfs_get_parent(struct dentry *child)
|
||||
|
||||
root = NILFS_I(d_inode(child))->i_root;
|
||||
|
||||
inode = nilfs_iget(d_inode(child)->i_sb, root, ino);
|
||||
inode = nilfs_iget(child->d_sb, root, ino);
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
|
||||
|
Reference in New Issue
Block a user