diff options
Diffstat (limited to 'inode.c')
-rw-r--r-- | inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -350,6 +350,8 @@ int btrfs_unlink(struct btrfs_trans_handle *trans, struct btrfs_root *root, /* For nlinks == 0, add it to orphan list if needed */ if (nlinks == 0 && add_orphan) { ret = btrfs_add_orphan_item(trans, root, path, ino); + if (ret < 0) + goto out; btrfs_mark_buffer_dirty(path->nodes[0]); btrfs_release_path(path); } |