patch-2.4.6 linux/include/linux/mmzone.h
Next file: linux/include/linux/mount.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Jul 3 15:42:55 2001
- Orig file:
v2.4.5/linux/include/linux/mmzone.h
- Orig date:
Fri May 25 18:01:27 2001
diff -u --recursive --new-file v2.4.5/linux/include/linux/mmzone.h linux/include/linux/mmzone.h
@@ -78,10 +78,9 @@
*/
typedef struct zonelist_struct {
zone_t * zones [MAX_NR_ZONES+1]; // NULL delimited
- int gfp_mask;
} zonelist_t;
-#define NR_GFPINDEX 0x20
+#define GFP_ZONEMASK 0x0f
/*
* The pg_data_t structure is used in machines with CONFIG_DISCONTIGMEM
@@ -97,7 +96,7 @@
struct bootmem_data;
typedef struct pglist_data {
zone_t node_zones[MAX_NR_ZONES];
- zonelist_t node_zonelists[NR_GFPINDEX];
+ zonelist_t node_zonelists[GFP_ZONEMASK+1];
struct page *node_mem_map;
unsigned long *valid_addr_bitmap;
struct bootmem_data *bdata;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)