|
@@ -2032,7 +2032,7 @@ int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode)
|
|
/* insert an orphan item to track this unlinked/truncated file */
|
|
/* insert an orphan item to track this unlinked/truncated file */
|
|
if (insert >= 1) {
|
|
if (insert >= 1) {
|
|
ret = btrfs_insert_orphan_item(trans, root, btrfs_ino(inode));
|
|
ret = btrfs_insert_orphan_item(trans, root, btrfs_ino(inode));
|
|
- BUG_ON(ret);
|
|
|
|
|
|
+ BUG_ON(ret && ret != -EEXIST);
|
|
}
|
|
}
|
|
|
|
|
|
/* insert an orphan item to track subvolume contains orphan files */
|
|
/* insert an orphan item to track subvolume contains orphan files */
|