Re: [PATCH 16/25] Save text by reducing call sites of __rmqueue()

From: KOSAKI Motohiro
Date: Tue Apr 21 2009 - 06:47:55 EST


> } else {
> - spin_lock_irqsave(&zone->lock, flags);
> - page = __rmqueue(zone, order, migratetype);
> - spin_unlock(&zone->lock);
> - if (!page)
> + LIST_HEAD(list);
> + local_irq_save(flags);
> +
> + /* Calling __rmqueue would bloat text, hence this */
> + if (!rmqueue_bulk(zone, order, 1, &list, migratetype))
> goto failed;
> + page = list_entry(list.next, struct page, lru);
> + list_del(&page->lru);
> }

looks good
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/