Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1f769291
Commit
1f769291
authored
Sep 29, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Sep 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove free_area_t typedef
typedef eradication.
parent
7c5bd68c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/linux/mmzone.h
include/linux/mmzone.h
+3
-3
mm/page_alloc.c
mm/page_alloc.c
+3
-3
No files found.
include/linux/mmzone.h
View file @
1f769291
...
@@ -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
...
...
mm/page_alloc.c
View file @
1f769291
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment