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 <[email protected]>
This commit is contained in:
Al Viro 2016-04-10 01:33:30 -04:00
commit fc64005c93
30 changed files with 41 additions and 50 deletions

View file

@ -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);