This is a note to let you know that I've just added the patch titled
erofs: get rid of debug_one_dentry() to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: erofs-get-rid-of-debug_one_dentry.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <sta...@vger.kernel.org> know about it. >From stable+bounces-163683-greg=kroah....@vger.kernel.org Tue Jul 22 12:04:24 >2025 From: Gao Xiang <hsiang...@linux.alibaba.com> Date: Tue, 22 Jul 2025 18:00:25 +0800 Subject: erofs: get rid of debug_one_dentry() To: sta...@vger.kernel.org, Greg Kroah-Hartman <gre...@linuxfoundation.org>, Jan Kiszka <jan.kis...@siemens.com>, Stefan Kerkmann <s.kerkm...@pengutronix.de> Cc: linux-erofs@lists.ozlabs.org, LKML <linux-ker...@vger.kernel.org>, Gao Xiang <hsiang...@linux.alibaba.com>, Yue Hu <huy...@coolpad.com>, Jingbo Xu <jeffl...@linux.alibaba.com>, Chao Yu <c...@kernel.org> Message-ID: <20250722100029.3052177-2-hsiang...@linux.alibaba.com> From: Gao Xiang <hsiang...@linux.alibaba.com> commit e324eaa9790614577c93e819651e0a83963dac79 upstream. Since erofsdump is available, no need to keep this debugging functionality at all. Also drop a useless comment since it's the VFS behavior. Link: https://lore.kernel.org/r/20230114125746.399253-1-xi...@kernel.org Reviewed-by: Yue Hu <huy...@coolpad.com> Reviewed-by: Jingbo Xu <jeffl...@linux.alibaba.com> Reviewed-by: Chao Yu <c...@kernel.org> Signed-off-by: Gao Xiang <hsiang...@linux.alibaba.com> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- fs/erofs/dir.c | 17 ----------------- 1 file changed, 17 deletions(-) --- a/fs/erofs/dir.c +++ b/fs/erofs/dir.c @@ -6,21 +6,6 @@ */ #include "internal.h" -static void debug_one_dentry(unsigned char d_type, const char *de_name, - unsigned int de_namelen) -{ -#ifdef CONFIG_EROFS_FS_DEBUG - /* since the on-disk name could not have the trailing '\0' */ - unsigned char dbg_namebuf[EROFS_NAME_LEN + 1]; - - memcpy(dbg_namebuf, de_name, de_namelen); - dbg_namebuf[de_namelen] = '\0'; - - erofs_dbg("found dirent %s de_len %u d_type %d", dbg_namebuf, - de_namelen, d_type); -#endif -} - static int erofs_fill_dentries(struct inode *dir, struct dir_context *ctx, void *dentry_blk, struct erofs_dirent *de, unsigned int nameoff, unsigned int maxsize) @@ -52,10 +37,8 @@ static int erofs_fill_dentries(struct in return -EFSCORRUPTED; } - debug_one_dentry(d_type, de_name, de_namelen); if (!dir_emit(ctx, de_name, de_namelen, le64_to_cpu(de->nid), d_type)) - /* stopped by some reason */ return 1; ++de; ctx->pos += sizeof(struct erofs_dirent); Patches currently in stable-queue which might be from hsiang...@linux.alibaba.com are queue-6.1/erofs-sunset-erofs_dbg.patch queue-6.1/erofs-simplify-z_erofs_transform_plain.patch queue-6.1/erofs-get-rid-of-debug_one_dentry.patch queue-6.1/erofs-drop-z_erofs_page_mark_eio.patch queue-6.1/erofs-address-d-cache-aliasing.patch