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
nexedi
linux
Commits
de894013
Commit
de894013
authored
Apr 11, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] arm: stop using page->list
Switch the ARM `small_page' code over to page->lru.
parent
0fcb51fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/arm26/machine/small_page.c
arch/arm26/machine/small_page.c
+4
-4
No files found.
arch/arm26/machine/small_page.c
View file @
de894013
...
...
@@ -95,7 +95,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
offset
=
ffz
(
USED_MAP
(
page
));
SET_USED
(
page
,
offset
);
if
(
USED_MAP
(
page
)
==
order
->
all_used
)
list_del_init
(
&
page
->
l
ist
);
list_del_init
(
&
page
->
l
ru
);
spin_unlock_irqrestore
(
&
small_page_lock
,
flags
);
return
(
unsigned
long
)
page_address
(
page
)
+
(
offset
<<
order
->
shift
);
...
...
@@ -110,7 +110,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
goto
no_page
;
SetPageReserved
(
page
);
USED_MAP
(
page
)
=
0
;
list_add
(
&
page
->
l
ist
,
&
order
->
queue
);
list_add
(
&
page
->
l
ru
,
&
order
->
queue
);
goto
again
;
}
...
...
@@ -151,7 +151,7 @@ static void __free_small_page(unsigned long spage, struct order *order)
spin_lock_irqsave
(
&
small_page_lock
,
flags
);
if
(
USED_MAP
(
page
)
==
order
->
all_used
)
list_add
(
&
page
->
l
ist
,
&
order
->
queue
);
list_add
(
&
page
->
l
ru
,
&
order
->
queue
);
if
(
!
TEST_AND_CLEAR_USED
(
page
,
spage
))
goto
already_free
;
...
...
@@ -167,7 +167,7 @@ static void __free_small_page(unsigned long spage, struct order *order)
/*
* unlink the page from the small page queue and free it
*/
list_del_init
(
&
page
->
l
ist
);
list_del_init
(
&
page
->
l
ru
);
spin_unlock_irqrestore
(
&
small_page_lock
,
flags
);
ClearPageReserved
(
page
);
__free_page
(
page
);
...
...
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