mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
ceph: d_obtain_{alias,root}(ERR_PTR(...)) will do the right thing
Clean up the code. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
0f4cf64eab
commit
f6fb21b22f
@ -286,8 +286,6 @@ static struct dentry *__snapfh_to_dentry(struct super_block *sb,
|
||||
doutc(cl, "%llx.%llx parent %llx hash %x err=%d", vino.ino,
|
||||
vino.snap, sfh->parent_ino, sfh->hash, err);
|
||||
}
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
/* see comments in ceph_get_parent() */
|
||||
return unlinked ? d_obtain_root(inode) : d_obtain_alias(inode);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user