Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5178365ybl; Tue, 14 Jan 2020 04:56:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxwEmJnjt6mrF41+o7ef1foUNH2slF9c2Z1C1JsTNiIXStay6K8TJ6DETVgHzhaSNJdmVHJ X-Received: by 2002:a05:6830:1d7a:: with SMTP id l26mr15908369oti.138.1579006571597; Tue, 14 Jan 2020 04:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579006571; cv=none; d=google.com; s=arc-20160816; b=gqt25SZnAwr8xhe4Bw1zEVNo7FVQ+14yBvhMxPvQb/BHNlTkuamM21lxNmPzBTxH7E VlzVnG8tM+uF2Wdq8Gy5mgyl5RlZ298HVbYh1+NKLJZ2K/tP9c30jHhu98/VgD9B0CGy e9x2weiWgwAxveROT24lfebgmmzFIsMP/8+Rw61VS7/ZP5WGre0e03smpD7XE0LaWOjS n7pPSn70AGn2LaLid1Vo2B/G6TBHBjQ+JsO1e+/dVNWxX6Xz5Nf1Bh7uBldFPb4KJpxn r8fbB7FbcDvnk5QhvH9Bm5V6ODv2yTdqIEYkHoE8TxeGJRtsgXnsD81vAF5GzBkTlb3N ErKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from; bh=PkRjL2lBXmJd9DVxTl7YrRlu9zVflgtow3d9XjFnijU=; b=KrDxS05CHL2YxPeNxDjc7VdvqOrtE7GGg1j0GEHc2qyKJCWxPjfzfvFp3wrJZl+T2y XW07v3wxIBDEF+PoDJ/nEMvuclrGrmaEKl8nR06Bb0/EW92S9VbOtNAzYbmAFSOhG6tn 25gUMYeRhicbHg+to8P7uKYwWQauIHtBWbeuQuRixIk3p7+BzRdvG0jEUPF0s74U723F EbhOKsbVb2HYl36L1QEKV21ezVTPPOsS5Sjj7o8P+Y3zH+g573aOffed6wTpa/oBeISK gxkd3GcPkF/wE+24mcp5KJm3g1w4lc7SG1fvDZG7sWQIAyf1VaDsRFM5RnWpleBhopYW TeyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si9043390oti.226.2020.01.14.04.56.00; Tue, 14 Jan 2020 04:56:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbgANMzJ (ORCPT + 99 others); Tue, 14 Jan 2020 07:55:09 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:37789 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgANMzJ (ORCPT ); Tue, 14 Jan 2020 07:55:09 -0500 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 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 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 { \ -- 1.8.3.1