]> Git Repo - linux.git/commit
mm: remove lru parameter from __lru_cache_add and lru_cache_add_lru
authorMel Gorman <[email protected]>
Wed, 3 Jul 2013 22:02:34 +0000 (15:02 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 Jul 2013 23:07:31 +0000 (16:07 -0700)
commitc53954a092d07c5684d31ea1fc813d262cff08a5
tree257a36dd4b413e2d82aff23b5b7194a01b57df40
parenta0b8cab3b9b2efadabdcff264c450ca515e2619c
mm: remove lru parameter from __lru_cache_add and lru_cache_add_lru

Similar to __pagevec_lru_add, this patch removes the LRU parameter from
__lru_cache_add and lru_cache_add_lru as the caller does not control the
exact LRU the page gets added to.  lru_cache_add_lru gets renamed to
lru_cache_add the name is silly without the lru parameter.  With the
parameter removed, it is required that the caller indicate if they want
the page added to the active or inactive list by setting or clearing
PageActive respectively.

[[email protected]: Suggested the patch]
[[email protected]: fix used-unintialized warning]
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Chen Gang <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: 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]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/swap.h
mm/rmap.c
mm/swap.c
mm/vmscan.c
This page took 0.048519 seconds and 4 git commands to generate.