diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-11 09:13:58 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-20 20:08:03 +0300 |
commit | 00488aa21150053a568343df2aca10a33559d7d8 (patch) | |
tree | 6f01d220106e3798ac49f64ffbcc45a9166b59a3 /fs | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) | |
download | linux-00488aa21150053a568343df2aca10a33559d7d8.tar.xz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/zonefs/super.c | 2 |
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); } |