mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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:
parent
04c57f4501
commit
fc64005c93
30 changed files with 41 additions and 50 deletions
|
|
@ -1638,13 +1638,13 @@ struct dentry *ext4_get_parent(struct dentry *child)
|
|||
ino = le32_to_cpu(de->inode);
|
||||
brelse(bh);
|
||||
|
||||
if (!ext4_valid_inum(d_inode(child)->i_sb, ino)) {
|
||||
if (!ext4_valid_inum(child->d_sb, ino)) {
|
||||
EXT4_ERROR_INODE(d_inode(child),
|
||||
"bad parent inode number: %u", ino);
|
||||
return ERR_PTR(-EFSCORRUPTED);
|
||||
}
|
||||
|
||||
return d_obtain_alias(ext4_iget_normal(d_inode(child)->i_sb, ino));
|
||||
return d_obtain_alias(ext4_iget_normal(child->d_sb, ino));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue