btrfs-progs: fi du: improved error handling in mark_inode_seen
The callchain handles errors, don't crash on unexpected condition. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
44af5de2f3
commit
4a16608150
|
@ -228,7 +228,7 @@ static int mark_inode_seen(u64 ino, u64 subvol)
|
|||
else if (cmp > 0)
|
||||
p = &(*p)->rb_right;
|
||||
else
|
||||
BUG();
|
||||
return -EEXIST;
|
||||
}
|
||||
|
||||
si = calloc(1, sizeof(*si));
|
||||
|
|
Loading…
Reference in New Issue