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:
@@ -113,7 +113,7 @@ struct dentry *efs_get_parent(struct dentry *child)
|
||||
|
||||
ino = efs_find_entry(d_inode(child), "..", 2);
|
||||
if (ino)
|
||||
parent = d_obtain_alias(efs_iget(d_inode(child)->i_sb, ino));
|
||||
parent = d_obtain_alias(efs_iget(child->d_sb, ino));
|
||||
|
||||
return parent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user