]> Git Repo - linux.git/commit
mm: remove lru parameter from __pagevec_lru_add and remove parts of pagevec API
authorMel Gorman <[email protected]>
Wed, 3 Jul 2013 22:02:32 +0000 (15:02 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 Jul 2013 23:07:31 +0000 (16:07 -0700)
commita0b8cab3b9b2efadabdcff264c450ca515e2619c
tree31bcd78c027cafbc9daf892fe7b6db07c48297a5
parent059285a25f30c13ed4f5d91cecd6094b9b20bb7b
mm: remove lru parameter from __pagevec_lru_add and remove parts of pagevec API

Now that the LRU to add a page to is decided at LRU-add time, remove the
misleading lru parameter from __pagevec_lru_add.  A consequence of this
is that the pagevec_lru_add_file, pagevec_lru_add_anon and similar
helpers are misleading as the caller no longer has direct control over
what LRU the page is added to.  Unused helpers are removed by this patch
and existing users of pagevec_lru_add_file() are converted to use
lru_cache_add_file() directly and use the per-cpu pagevecs instead of
creating their own pagevec.

Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Alexey Lyahkov <[email protected]>
Cc: Andrew Perepechko <[email protected]>
Cc: Robin Dong <[email protected]>
Cc: Theodore Tso <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Bernd Schubert <[email protected]>
Cc: David Howells <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/cachefiles/rdwr.c
fs/nfs/dir.c
include/linux/pagevec.h
mm/swap.c
This page took 0.057503 seconds and 4 git commands to generate.