Commit 7d03431c authored by Fernando Luis Vazquez Cao's avatar Fernando Luis Vazquez Cao Committed by Linus Torvalds

swapfile/vmscan: update comments related to vmscan functions

Signed-off-by: default avatarFernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ab33dc09
...@@ -656,8 +656,8 @@ static int unuse_mm(struct mm_struct *mm, ...@@ -656,8 +656,8 @@ static int unuse_mm(struct mm_struct *mm,
if (!down_read_trylock(&mm->mmap_sem)) { if (!down_read_trylock(&mm->mmap_sem)) {
/* /*
* Activate page so shrink_cache is unlikely to unmap its * Activate page so shrink_inactive_list is unlikely to unmap
* ptes while lock is dropped, so swapoff can make progress. * its ptes while lock is dropped, so swapoff can make progress.
*/ */
activate_page(page); activate_page(page);
unlock_page(page); unlock_page(page);
......
...@@ -1979,7 +1979,7 @@ module_init(kswapd_init) ...@@ -1979,7 +1979,7 @@ module_init(kswapd_init)
int zone_reclaim_mode __read_mostly; int zone_reclaim_mode __read_mostly;
#define RECLAIM_OFF 0 #define RECLAIM_OFF 0
#define RECLAIM_ZONE (1<<0) /* Run shrink_cache on the zone */ #define RECLAIM_ZONE (1<<0) /* Run shrink_inactive_list on the zone */
#define RECLAIM_WRITE (1<<1) /* Writeout pages during reclaim */ #define RECLAIM_WRITE (1<<1) /* Writeout pages during reclaim */
#define RECLAIM_SWAP (1<<2) /* Swap pages out during reclaim */ #define RECLAIM_SWAP (1<<2) /* Swap pages out during reclaim */
......
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