diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 5621818921f8..36bc3f49ebf9 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2357,6 +2357,7 @@ void btrfs_orphan_cleanup(struct btrfs_root *root) | |||
2357 | */ | 2357 | */ |
2358 | if (is_bad_inode(inode)) { | 2358 | if (is_bad_inode(inode)) { |
2359 | trans = btrfs_start_transaction(root, 0); | 2359 | trans = btrfs_start_transaction(root, 0); |
2360 | BUG_ON(IS_ERR(trans)); | ||
2360 | btrfs_orphan_del(trans, inode); | 2361 | btrfs_orphan_del(trans, inode); |
2361 | btrfs_end_transaction(trans, root); | 2362 | btrfs_end_transaction(trans, root); |
2362 | iput(inode); | 2363 | iput(inode); |