2011-02-06 (ì), 09:46 -0800, Yinghai Lu: > we can skip the restoring. > > Thanks > > Yinghai > > diff --git a/mm/memblock.c b/mm/memblock.c > index bdba245..3231657 100644 > --- a/mm/memblock.c > +++ b/mm/memblock.c > @@ -374,13 +374,9 @@ static long __init_memblock memblock_add_region(struct memblock_type *type, phys > } > type->cnt++; > > - /* The array is full ? Try to resize it. If that fails, we undo > - * our allocation and return an error > - */ > - if (type->cnt == type->max && memblock_double_array(type)) { > - type->cnt--; > + /* The array is full ? Try to resize it */ > + if (type->cnt == type->max && memblock_double_array(type)) > return -1; > - } > > return 0; > } Looks OK to me, too. Thanks. -- Regards, Namhyung Kim -- 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>