Lines Matching refs:trans
802 struct btrfs_trans_handle *trans = NULL; in scrub_fixup_nodatasum() local
818 trans = btrfs_join_transaction(fixup->root); in scrub_fixup_nodatasum()
819 if (IS_ERR(trans)) { in scrub_fixup_nodatasum()
847 if (trans && !IS_ERR(trans)) in scrub_fixup_nodatasum()
848 btrfs_end_transaction(trans, fixup->root); in scrub_fixup_nodatasum()
3950 struct btrfs_trans_handle *trans = NULL; in copy_nocow_pages_worker() local
3968 trans = btrfs_join_transaction(root); in copy_nocow_pages_worker()
3969 if (IS_ERR(trans)) { in copy_nocow_pages_worker()
3985 btrfs_end_transaction(trans, root); in copy_nocow_pages_worker()
3986 trans = NULL; in copy_nocow_pages_worker()
4012 if (trans && !IS_ERR(trans)) in copy_nocow_pages_worker()
4013 btrfs_end_transaction(trans, root); in copy_nocow_pages_worker()