Commit d969811d authored by Liu Mingrui's avatar Liu Mingrui Committed by Richard Weinberger
Browse files

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: default avatarLiu Mingrui <liumingrui@huawei.com>
Reviewed-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent c4595fe3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;