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:
@@ -147,7 +147,7 @@ static struct dentry *jffs2_get_parent(struct dentry *child)
|
||||
JFFS2_DEBUG("Parent of directory ino #%u is #%u\n",
|
||||
f->inocache->ino, pino);
|
||||
|
||||
return d_obtain_alias(jffs2_iget(d_inode(child)->i_sb, pino));
|
||||
return d_obtain_alias(jffs2_iget(child->d_sb, pino));
|
||||
}
|
||||
|
||||
static const struct export_operations jffs2_export_ops = {
|
||||
|
Reference in New Issue
Block a user