From: Liu Mingrui Date: Wed, 21 Aug 2024 06:30:59 +0000 (+0000) Subject: ubifs: Display the inode number when orphan twice happens X-Git-Tag: v6.13-rc1~19^2~20 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d969811d45cc4133ca61212b2ac3d14f2bdfc0ac;p=linux-block.git ubifs: Display the inode number when orphan twice happens Display the inode number in error message when the same orphan inode is added twice, which could provide more information for debugging. Signed-off-by: Liu Mingrui Reviewed-by: Zhihao Cheng Signed-off-by: Richard Weinberger --- diff --git a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c index fb957d963ba6..5555dd740889 100644 --- a/fs/ubifs/orphan.c +++ b/fs/ubifs/orphan.c @@ -76,7 +76,7 @@ int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) else if (inum > o->inum) p = &(*p)->rb_right; else { - ubifs_err(c, "orphaned twice"); + ubifs_err(c, "ino %lu orphaned twice", (unsigned long)inum); spin_unlock(&c->orphan_lock); kfree(orphan); return -EINVAL;