Commit cdec9245 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] add missing page_referenced() for MMUless configs

This patch adds the missing page_reference() macro for the no swap
case. With no rmap this is trivially a call to TestClearPageReferenced().
parent 3972dfab
......@@ -242,6 +242,8 @@ extern spinlock_t swaplock;
page_cache_release(page)
#define free_pages_and_swap_cache(pages, nr) \
release_pages((pages), (nr), 0);
#define page_referenced(page) \
TestClearPageReferenced(page)
#define show_swap_cache_info() /*NOTHING*/
#define free_swap_and_cache(swp) /*NOTHING*/
......
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