public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* correct inaccurate comment regarding zone_table's usage
@ 2002-06-02 21:58 William Lee Irwin III
  0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-06-02 21:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial

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);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-02 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-02 21:58 correct inaccurate comment regarding zone_table's usage William Lee Irwin III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox