correct inaccurate comment regarding zone_table's usage

From: William Lee Irwin III (wli@holomorphy.com)
Date: Sun Jun 02 2002 - 16:58:43 EST


The comment describing the usage of zone_table[] assumes the existence
of an unsigned char page->zone field from the original implementation
of page->zone size reduction. This patch corrects the comment to
accurately describe the lookup mechanism used by page_zone() and also
to mention explicitly the sole user of the table, page_zone().

Against 2.5.19.

Cheers,
Bill

===== mm/page_alloc.c 1.64 vs edited =====
--- 1.64/mm/page_alloc.c Sun Jun 2 14:51:50 2002
+++ edited/mm/page_alloc.c Sun Jun 2 14:55:49 2002
@@ -31,7 +31,10 @@
 LIST_HEAD(inactive_list);
 pg_data_t *pgdat_list;
 
-/* Used to look up the address of the struct zone encoded in page->zone */
+/*
+ * Used by page_zone() to look up the address of the struct zone whose
+ * id is encoded in the upper bits of page->flags
+ */
 zone_t *zone_table[MAX_NR_ZONES*MAX_NR_NODES];
 EXPORT_SYMBOL(zone_table);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 07 2002 - 22:00:13 EST