]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove BUG_ON in start_transaction
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 14 Sep 2016 02:15:48 +0000 (19:15 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 16:04:01 +0000 (18:04 +0200)
commit67330c39303260522c6142dc9ad0bed2dcf3d1ff
treec3b005cedbd3c027247fdf70ace686e9aabff567
parent1f6956ef7ba9f49cd97a9241cbe6e015a59e0ccc
Btrfs: remove BUG_ON in start_transaction

Since we could get errors from the concurrent aborted transaction,
the check of this BUG_ON in start_transaction is not true any more.

Say, while flushing free space cache inode's dirty pages,
btrfs_finish_ordered_io
 -> btrfs_join_transaction_nolock
      (the transaction has been aborted.)
      -> BUG_ON(type == TRANS_JOIN_NOLOCK);

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c