]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: fold and remove lru_cache_add_anon() and lru_cache_add_file()
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 Jun 2020 23:02:40 +0000 (16:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Jun 2020 03:09:48 +0000 (20:09 -0700)
commit6058eaec816f29fbe33c9d35694614c9a4ed75ba
tree88f63c509153486c4b71d6df45040ce658508dbc
parentc843966c556d7370bb32e7319a6d164cb8c70ae2
mm: fold and remove lru_cache_add_anon() and lru_cache_add_file()

They're the same function, and for the purpose of all callers they are
equivalent to lru_cache_add().

[akpm@linux-foundation.org: fix it for local_lock changes]
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Rik van Riel <riel@surriel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Link: http://lkml.kernel.org/r/20200520232525.798933-5-hannes@cmpxchg.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cifs/file.c
fs/fuse/dev.c
include/linux/swap.h
mm/khugepaged.c
mm/memory.c
mm/shmem.c
mm/swap.c
mm/swap_state.c