diff options
| author | Greg Ungerer <gerg@snapgear.com> | 2003-02-18 05:48:02 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-18 05:48:02 -0800 |
| commit | cdec9245fbf39918f5af7bc73b4164b02a442a1f (patch) | |
| tree | d46beb4f68b4d25f7be817402288658a5710f19a | |
| parent | 3972dfabae304e0cab086714dd9c7a86e9c74306 (diff) | |
[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().
| -rw-r--r-- | include/linux/swap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index d20061e6cb08..d17ff9784ffb 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -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*/ |
