ce = start; while (ce) { do(something); ce = next_cache_entry(ce); } is the same as i = start_index; while (i < active_nr) { ce = active_cache[i]; do(something); i++; } What's the advantage of using the former over the latter? Do you plan to eliminate the latter loop (by hiding "struct cache_entry **cache;" from public index_state structure? -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html