Commit 273cbb5a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] PageReserved test in __pagevec_release()

I want to find a way to get all those PageReserved tests out of
there, because they are very expensive.  But now is not the
time.
parent f3619737
...@@ -116,7 +116,7 @@ void __pagevec_release(struct pagevec *pvec) ...@@ -116,7 +116,7 @@ void __pagevec_release(struct pagevec *pvec)
for (i = 0; i < pagevec_count(pvec); i++) { for (i = 0; i < pagevec_count(pvec); i++) {
struct page *page = pvec->pages[i]; struct page *page = pvec->pages[i];
if (!put_page_testzero(page)) if (PageReserved(page) || !put_page_testzero(page))
continue; continue;
if (!lock_held) { if (!lock_held) {
......
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