Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0af8f0b authored by Wang Shilong's avatar Wang Shilong Committed by Josef Bacik
Browse files

Btrfs: cancel scrub on transaction abortion



If we fail to commit transaction, we'd better
cancel scrub operations.

Suggested-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarWang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
parent 12cf9372
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1580,6 +1580,7 @@ static void cleanup_transaction(struct btrfs_trans_handle *trans,

	if (current->journal_info == trans)
		current->journal_info = NULL;
	btrfs_scrub_cancel(root->fs_info);

	kmem_cache_free(btrfs_trans_handle_cachep, trans);
}