Lines Matching refs:log_transid
178 int index = root->log_transid % 2; in start_log_trans()
180 ctx->log_transid = root->log_transid; in start_log_trans()
2965 if (log->log_transid == 1) { in update_log_root()
3070 int log_transid = 0; in btrfs_sync_log() local
3075 log_transid = ctx->log_transid; in btrfs_sync_log()
3076 if (root->log_transid_committed >= log_transid) { in btrfs_sync_log()
3081 index1 = log_transid % 2; in btrfs_sync_log()
3083 wait_log_commit(root, log_transid); in btrfs_sync_log()
3087 ASSERT(log_transid == root->log_transid); in btrfs_sync_log()
3092 wait_log_commit(root, log_transid - 1); in btrfs_sync_log()
3115 if (log_transid % 2 == 0) in btrfs_sync_log()
3149 root->log_transid++; in btrfs_sync_log()
3150 log->log_transid = root->log_transid; in btrfs_sync_log()
3163 index2 = log_root_tree->log_transid % 2; in btrfs_sync_log()
3165 root_log_ctx.log_transid = log_root_tree->log_transid; in btrfs_sync_log()
3191 if (log_root_tree->log_transid_committed >= root_log_ctx.log_transid) { in btrfs_sync_log()
3199 index2 = root_log_ctx.log_transid % 2; in btrfs_sync_log()
3204 root_log_ctx.log_transid); in btrfs_sync_log()
3210 ASSERT(root_log_ctx.log_transid == log_root_tree->log_transid); in btrfs_sync_log()
3215 root_log_ctx.log_transid - 1); in btrfs_sync_log()
3255 log_root_tree->log_transid++; in btrfs_sync_log()
3273 if (root->last_log_commit < log_transid) in btrfs_sync_log()
3274 root->last_log_commit = log_transid; in btrfs_sync_log()