Commit f6fb21b2 authored by Al Viro's avatar Al Viro Committed by Ilya Dryomov

ceph: d_obtain_{alias,root}(ERR_PTR(...)) will do the right thing

Clean up the code.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 0f4cf64e
...@@ -286,8 +286,6 @@ static struct dentry *__snapfh_to_dentry(struct super_block *sb, ...@@ -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, doutc(cl, "%llx.%llx parent %llx hash %x err=%d", vino.ino,
vino.snap, sfh->parent_ino, sfh->hash, err); vino.snap, sfh->parent_ino, sfh->hash, err);
} }
if (IS_ERR(inode))
return ERR_CAST(inode);
/* see comments in ceph_get_parent() */ /* see comments in ceph_get_parent() */
return unlinked ? d_obtain_root(inode) : d_obtain_alias(inode); return unlinked ? d_obtain_root(inode) : d_obtain_alias(inode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment