diff options
author | Ashwin Chaugule <ashwin.chaugule@celunite.com> | 2006-12-06 23:31:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:21 -0500 |
commit | 098fe651f7e9d759d1117c78c1a642b9b3945922 (patch) | |
tree | 8688e367d04c8341e79d9da775dccb9dc7747509 /mm/filemap.c | |
parent | cd54e7e54318d333227b13186f9a464bf1f68d27 (diff) |
[PATCH] grab swap token reordered
Make sure the contention for the token happens _before_ any read-in and
kicks the swap-token algo only when the VM is under pressure.
Signed-off-by: Ashwin Chaugule <ashwin.chaugule@celunite.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 13df01c50479..af7e2f5caea9 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1445,7 +1445,6 @@ no_cached_page: | |||
1445 | * effect. | 1445 | * effect. |
1446 | */ | 1446 | */ |
1447 | error = page_cache_read(file, pgoff); | 1447 | error = page_cache_read(file, pgoff); |
1448 | grab_swap_token(); | ||
1449 | 1448 | ||
1450 | /* | 1449 | /* |
1451 | * The page we want has now been added to the page cache. | 1450 | * The page we want has now been added to the page cache. |