File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,6 @@ static int nilfs_rename(struct mnt_idmap *idmap,
439
439
static struct dentry * nilfs_get_parent (struct dentry * child )
440
440
{
441
441
unsigned long ino ;
442
- struct inode * inode ;
443
442
struct nilfs_root * root ;
444
443
445
444
ino = nilfs_inode_by_name (d_inode (child ), & dotdot_name );
@@ -448,11 +447,7 @@ static struct dentry *nilfs_get_parent(struct dentry *child)
448
447
449
448
root = NILFS_I (d_inode (child ))-> i_root ;
450
449
451
- inode = nilfs_iget (child -> d_sb , root , ino );
452
- if (IS_ERR (inode ))
453
- return ERR_CAST (inode );
454
-
455
- return d_obtain_alias (inode );
450
+ return d_obtain_alias (nilfs_iget (child -> d_sb , root , ino ));
456
451
}
457
452
458
453
static struct dentry * nilfs_get_dentry (struct super_block * sb , u64 cno ,
You can’t perform that action at this time.
0 commit comments