Commit 1f769291 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove free_area_t typedef

typedef eradication.
parent 7c5bd68c
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
#define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER #define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER
#endif #endif
typedef struct free_area_struct { struct free_area {
struct list_head free_list; struct list_head free_list;
unsigned long *map; unsigned long *map;
} free_area_t; };
struct pglist_data; struct pglist_data;
...@@ -78,7 +78,7 @@ struct zone { ...@@ -78,7 +78,7 @@ struct zone {
/* /*
* free areas of different sizes * free areas of different sizes
*/ */
free_area_t free_area[MAX_ORDER]; struct free_area free_area[MAX_ORDER];
/* /*
* wait_table -- the array holding the hash table * wait_table -- the array holding the hash table
......
...@@ -82,7 +82,7 @@ static inline int bad_range(struct zone *zone, struct page *page) ...@@ -82,7 +82,7 @@ static inline int bad_range(struct zone *zone, struct page *page)
void __free_pages_ok (struct page *page, unsigned int order) void __free_pages_ok (struct page *page, unsigned int order)
{ {
unsigned long index, page_idx, mask, flags; unsigned long index, page_idx, mask, flags;
free_area_t *area; struct free_area *area;
struct page *base; struct page *base;
struct zone *zone; struct zone *zone;
...@@ -155,7 +155,7 @@ void __free_pages_ok (struct page *page, unsigned int order) ...@@ -155,7 +155,7 @@ void __free_pages_ok (struct page *page, unsigned int order)
static inline struct page * static inline struct page *
expand(struct zone *zone, struct page *page, expand(struct zone *zone, struct page *page,
unsigned long index, int low, int high, free_area_t * area) unsigned long index, int low, int high, struct free_area *area)
{ {
unsigned long size = 1 << high; unsigned long size = 1 << high;
...@@ -194,7 +194,7 @@ static inline void prep_new_page(struct page *page) ...@@ -194,7 +194,7 @@ static inline void prep_new_page(struct page *page)
static struct page *rmqueue(struct zone *zone, unsigned int order) static struct page *rmqueue(struct zone *zone, unsigned int order)
{ {
free_area_t * area = zone->free_area + order; struct free_area *area = zone->free_area + order;
unsigned int curr_order = order; unsigned int curr_order = order;
struct list_head *head, *curr; struct list_head *head, *curr;
unsigned long flags; unsigned long flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment