aboutsummaryrefslogtreecommitdiff
path: root/fs/erofs/namei.c
diff options
context:
space:
mode:
authorGravatar Gao Xiang <hsiangkao@linux.alibaba.com> 2023-04-14 16:30:26 +0800
committerGravatar Gao Xiang <hsiangkao@linux.alibaba.com> 2023-04-17 01:15:54 +0800
commit10656f9ca60ed85f4cfc06bcbe1f240ee310fa8c (patch)
treea75124e20175834ed5a79d96e5c8aed822f1bc1a /fs/erofs/namei.c
parenterofs: fix potential overflow calculating xattr_isize (diff)
downloadlinux-10656f9ca60ed85f4cfc06bcbe1f240ee310fa8c.tar.gz
linux-10656f9ca60ed85f4cfc06bcbe1f240ee310fa8c.tar.bz2
linux-10656f9ca60ed85f4cfc06bcbe1f240ee310fa8c.zip
erofs: sunset erofs_dbg()
Such debug messages are rarely used now. Let's get rid of these, and revert locally if they are needed for debugging. Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20230414083027.12307-1-hsiangkao@linux.alibaba.com
Diffstat (limited to 'fs/erofs/namei.c')
-rw-r--r--fs/erofs/namei.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/erofs/namei.c b/fs/erofs/namei.c
index 43096bac4c99..d4f631d39f0f 100644
--- a/fs/erofs/namei.c
+++ b/fs/erofs/namei.c
@@ -205,16 +205,13 @@ static struct dentry *erofs_lookup(struct inode *dir, struct dentry *dentry,
err = erofs_namei(dir, &dentry->d_name, &nid, &d_type);
- if (err == -ENOENT) {
+ if (err == -ENOENT)
/* negative dentry */
inode = NULL;
- } else if (err) {
+ else if (err)
inode = ERR_PTR(err);
- } else {
- erofs_dbg("%s, %pd (nid %llu) found, d_type %u", __func__,
- dentry, nid, d_type);
+ else
inode = erofs_iget(dir->i_sb, nid);
- }
return d_splice_alias(inode, dentry);
}