Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11318
b: refs/heads/master
c: fcdae29
h: refs/heads/master
v: v3
  • Loading branch information
Rik Van Riel authored and Linus Torvalds committed Oct 30, 2005
1 parent c35e044 commit 1c2cea9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb92f4ef320b738e41ad43476a5d05c8a20d5cc7
refs/heads/master: fcdae29aa7a5c79f245110f6680afdc1858d3626
6 changes: 5 additions & 1 deletion trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ static int page_referenced_one(struct page *page,
if (ptep_clear_flush_young(vma, address, pte))
referenced++;

if (mm != current->mm && !ignore_token && has_swap_token(mm))
/* Pretend the page is referenced if the task has the
swap token and is in the middle of a page fault. */
if (mm != current->mm && !ignore_token &&
has_swap_token(mm) &&
rwsem_is_locked(&mm->mmap_sem))
referenced++;

(*mapcount)--;
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/thrash.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static unsigned long swap_token_check;
struct mm_struct * swap_token_mm = &init_mm;

#define SWAP_TOKEN_CHECK_INTERVAL (HZ * 2)
#define SWAP_TOKEN_TIMEOUT 0
#define SWAP_TOKEN_TIMEOUT (300 * HZ)
/*
* Currently disabled; Needs further code to work at HZ * 300.
*/
Expand Down

0 comments on commit 1c2cea9

Please sign in to comment.