Skip to content

Commit d969811

Browse files
Liu Mingruirichardweinberger
authored andcommitted
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 <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent c4595fe commit d969811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ubifs/orphan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int ubifs_add_orphan(struct ubifs_info *c, ino_t inum)
7676
else if (inum > o->inum)
7777
p = &(*p)->rb_right;
7878
else {
79-
ubifs_err(c, "orphaned twice");
79+
ubifs_err(c, "ino %lu orphaned twice", (unsigned long)inum);
8080
spin_unlock(&c->orphan_lock);
8181
kfree(orphan);
8282
return -EINVAL;

0 commit comments

Comments
 (0)