Lines Matching refs:trans
794 struct btrfs_trans_handle *trans = NULL; in scrub_fixup_nodatasum() local
810 trans = btrfs_join_transaction(fixup->root); in scrub_fixup_nodatasum()
811 if (IS_ERR(trans)) { in scrub_fixup_nodatasum()
839 if (trans && !IS_ERR(trans)) in scrub_fixup_nodatasum()
840 btrfs_end_transaction(trans, fixup->root); in scrub_fixup_nodatasum()
4128 struct btrfs_trans_handle *trans = NULL; in copy_nocow_pages_worker() local
4146 trans = btrfs_join_transaction(root); in copy_nocow_pages_worker()
4147 if (IS_ERR(trans)) { in copy_nocow_pages_worker()
4163 btrfs_end_transaction(trans, root); in copy_nocow_pages_worker()
4164 trans = NULL; in copy_nocow_pages_worker()
4190 if (trans && !IS_ERR(trans)) in copy_nocow_pages_worker()
4191 btrfs_end_transaction(trans, root); in copy_nocow_pages_worker()