From patchwork Tue Jan 14 12:55:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 11332133 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C81392A for ; Tue, 14 Jan 2020 12:55:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 00D602465A for ; Tue, 14 Jan 2020 12:55:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 00D602465A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4B7008E0006; Tue, 14 Jan 2020 07:55:12 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 469328E0003; Tue, 14 Jan 2020 07:55:12 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A4D98E0006; Tue, 14 Jan 2020 07:55:12 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id 24E268E0003 for ; Tue, 14 Jan 2020 07:55:12 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id B277D824999B for ; Tue, 14 Jan 2020 12:55:11 +0000 (UTC) X-FDA: 76376235222.25.park27_4a54f4d46a039 X-Spam-Summary: 2,0,0,1d3f0d0c4817518f,d41d8cd98f00b204,alex.shi@linux.alibaba.com,:alex.shi@linux.alibaba.com:akpm@linux-foundation.org::linux-kernel@vger.kernel.org,RULES_HIT:41:69:355:379:387:541:800:960:968:973:988:989:1260:1261:1345:1431:1437:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3867:3870:4321:5007:6261:9592:10004:11026:11473:11658:11914:12043:12114:12296:12297:12438:12555:12895:13069:13311:13357:13846:14181:14384:14394:14721:21060:21451:21627:30054,0,RBL:115.124.30.54:@linux.alibaba.com:.lbl8.mailshell.net-62.20.2.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:34,LUA_SUMMARY:none X-HE-Tag: park27_4a54f4d46a039 X-Filterd-Recvd-Size: 2029 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Tue, 14 Jan 2020 12:55:10 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04455;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0TnjKHlv_1579006506; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TnjKHlv_1579006506) by smtp.aliyun-inc.com(127.0.0.1); Tue, 14 Jan 2020 20:55:06 +0800 From: Alex Shi To: Cc: Alex Shi , Andrew Morton , linux-mm@kvack.org , linux-kernel@vger.kernel.org Subject: [PATCH] mm/vmscan: remove prefetch_prev_lru_page Date: Tue, 14 Jan 2020 20:55:00 +0800 Message-Id: <1579006500-127143-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This macro are never used in git history. So better to remove. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/vmscan.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 4e699ed3501e..033e7145061b 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 { \