diff options
author | Liu Mingrui <liumingrui@huawei.com> | 2024-08-21 06:30:59 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-11-14 17:49:31 +0100 |
commit | d969811d45cc4133ca61212b2ac3d14f2bdfc0ac (patch) | |
tree | e55d5cd068a49b96af0b651e59dd29f3ff69e96a /fs/ubifs | |
parent | c4595fe394a289927077e3da561db27811919ee0 (diff) |
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 <liumingrui@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs')
-rw-r--r-- | fs/ubifs/orphan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |