summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-11-11 01:13:58 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2023-12-20 12:08:03 -0500
commit00488aa21150053a568343df2aca10a33559d7d8 (patch)
tree6f01d220106e3798ac49f64ffbcc45a9166b59a3
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadlinux-00488aa21150053a568343df2aca10a33559d7d8.tar.gz
linux-00488aa21150053a568343df2aca10a33559d7d8.tar.bz2
linux-00488aa21150053a568343df2aca10a33559d7d8.zip
zonefs: d_splice_alias() will do the right thing on ERR_PTR() inode
Acked-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/zonefs/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c
index e6a75401677d..93971742613a 100644
--- a/fs/zonefs/super.c
+++ b/fs/zonefs/super.c
@@ -747,8 +747,6 @@ static struct dentry *zonefs_lookup(struct inode *dir, struct dentry *dentry,
inode = zonefs_get_dir_inode(dir, dentry);
else
inode = zonefs_get_file_inode(dir, dentry);
- if (IS_ERR(inode))
- return ERR_CAST(inode);
return d_splice_alias(inode, dentry);
}