Lines Matching refs:index2
2627 int index2; in btrfs_sync_log() local
2715 index2 = log_root_tree->log_transid % 2; in btrfs_sync_log()
2716 list_add_tail(&root_log_ctx.list, &log_root_tree->log_ctxs[index2]); in btrfs_sync_log()
2756 index2 = root_log_ctx.log_transid % 2; in btrfs_sync_log()
2757 if (atomic_read(&log_root_tree->log_commit[index2])) { in btrfs_sync_log()
2770 atomic_set(&log_root_tree->log_commit[index2], 1); in btrfs_sync_log()
2772 if (atomic_read(&log_root_tree->log_commit[(index2 + 1) % 2])) { in btrfs_sync_log()
2848 btrfs_remove_all_log_ctxs(log_root_tree, index2, ret); in btrfs_sync_log()
2852 atomic_set(&log_root_tree->log_commit[index2], 0); in btrfs_sync_log()
2855 if (waitqueue_active(&log_root_tree->log_commit_wait[index2])) in btrfs_sync_log()
2856 wake_up(&log_root_tree->log_commit_wait[index2]); in btrfs_sync_log()