[patch-2.4.0-test9] trivial optimization of gfp()

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Oct 04 2000 - 07:29:07 EST


Hi Linus,

The function mm/page_alloc.c:__alloc_pages() is performance-critical so
every bit/cycle helps. The page=NULL initialisation is not needed.

Regards,
Tigran

--- linux/mm/page_alloc.c Mon Oct 2 20:02:20 2000
+++ work/mm/page_alloc.c Wed Oct 4 13:25:22 2000
@@ -294,7 +294,7 @@
         zone_t **zone;
         int direct_reclaim = 0;
         unsigned int gfp_mask = zonelist->gfp_mask;
- struct page * page = NULL;
+ struct page * page;
 
         /*
          * Allocations put pressure on the VM subsystem.

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



This archive was generated by hypermail 2b29 : Sat Oct 07 2000 - 21:00:13 EST