On 03/05/2011 04:49 PM, Benjamin Herrenschmidt wrote: > On Sat, 2011-03-05 at 15:20 -0800, Yinghai Lu wrote: >> >> maybe we can omit rgn->size == 0 checking here. >> with that case, dummy array will go though to some extra checking. >> >> if (rgn->base <= base && rend >= end) >> if (base < rgn->base && end >= rgn->base) { >> if (base <= rend && end >= rend) { >> >> but we can spare more checking regarding >> rgn->size == 0 > > Well, the array can be collasped to dummy by the removal of the last > block when doing a top overlap, then on the next loop around, we can > potentially hit the if (base <= rend && end >= rend) test, and loop > again no ? > > I'd rather keep the test in .. won't hurt. ok. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>