summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linux.alibaba.com>2020-01-31 07:14:10 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-01-31 19:30:38 +0100
commitfffbacc1ec28f07e6f26df00b9eff012c3141048 (patch)
treec4b3e660e9a1598e8769bbd85886dc02f77989e5 /mm/vmscan.c
parentmm/vmscan.c: remove unused return value of shrink_node (diff)
downloadlinux-fffbacc1ec28f07e6f26df00b9eff012c3141048.tar.xz
linux-fffbacc1ec28f07e6f26df00b9eff012c3141048.zip
mm/vmscan: remove prefetch_prev_lru_page
This macro was never used in git history. So better to remove. Link: http://lkml.kernel.org/r/1579006500-127143-1-git-send-email-alex.shi@linux.alibaba.com Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Qian Cai <cai@lca.pw> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 9a543d128b58..88cdb7459130 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -146,20 +146,6 @@ struct scan_control {
struct reclaim_state reclaim_state;
};
-#ifdef ARCH_HAS_PREFETCH
-#define prefetch_prev_lru_page(_page, _base, _field) \
- do { \
- if ((_page)->lru.prev != _base) { \
- struct page *prev; \
- \
- prev = lru_to_page(&(_page->lru)); \
- prefetch(&prev->_field); \
- } \
- } while (0)
-#else
-#define prefetch_prev_lru_page(_page, _base, _field) do { } while (0)
-#endif
-
#ifdef ARCH_HAS_PREFETCHW
#define prefetchw_prev_lru_page(_page, _base, _field) \
do { \