mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -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
|
|
@ -241,7 +241,7 @@ static int jffs2_unlink(struct inode *dir_i, struct dentry *dentry)
|
|||
|
||||
static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry)
|
||||
{
|
||||
struct jffs2_sb_info *c = JFFS2_SB_INFO(d_inode(old_dentry)->i_sb);
|
||||
struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb);
|
||||
struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry));
|
||||
struct jffs2_inode_info *dir_f = JFFS2_INODE_INFO(dir_i);
|
||||
int ret;
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue