Commit 54c50cc5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] page_referenced() simplification

There's no point in calling mark_page_accessed() here.  The page is never on
the LRU so all mark_page_accessed() will do is to set PG_referenced, which we
immediately clear again.
parent 2139597d
......@@ -118,7 +118,7 @@ int fastcall page_referenced(struct page * page)
int referenced = 0;
if (page_test_and_clear_young(page))
mark_page_accessed(page);
referenced++;
if (TestClearPageReferenced(page))
referenced++;
......
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