]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/vmscan: remove prefetch_prev_lru_page
authorAlex Shi <alex.shi@linux.alibaba.com>
Fri, 31 Jan 2020 06:14:10 +0000 (22:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 31 Jan 2020 18:30:38 +0000 (10:30 -0800)
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>
mm/vmscan.c

index 9a543d128b588d9dfecef2365090720a859586cc..88cdb74591307f417eaa8ff4115a8c8887e1ae10 100644 (file)
@@ -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 {                                                            \