Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8377285ybl; Thu, 16 Jan 2020 15:39:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyQ6FXNR68yLtxxFR+6CoN+Bc/8iAGFkxtz+/CKL4Xc9KyeQ3Utle11bE4kDJwcR5WjnHS0 X-Received: by 2002:aca:50cd:: with SMTP id e196mr1353185oib.178.1579217953322; Thu, 16 Jan 2020 15:39:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579217953; cv=none; d=google.com; s=arc-20160816; b=U1D24rqVCWjyVkulleWWZvZmbH7kNOlM+I1fjTBIHWBruxdRDpFGLXp2nNQXRHFUme lbgncaaJQGRLzs1rlXhIKc9IJqD+j2MykCVKGEyu3QrlgUA06Z2lQcLEagOOkZ2ozzbY wSKkYCOY/QWRJwS10fq8wcRLk1pmFuF7m6tjOetUoCKMvYO4lwcb4laucHi3y6a3crLu 91SNEZbU7XEWCwteub6dlGdKn6i1Xl3Ho6I58gAYX3pcuwdHgxpA3WeTxtrdBoz21U3r Ge7aQ5aIydMUrmkD7xKLCZSkXU4GvUJBTgKYbvNZxHslWRgjLWe+z0sMDi+g5Kmt7QK0 LZAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wWFHy/SZvzhN7/VYyIni/LJtmRbLgznH12Qrh725dPg=; b=QMAHSiVya/tcf0RUGxP3/UF62BzBTEYAK0Zm5okEQvq0CT02QqLFmt480m9F5SfAmI MSutmqBf/tHDNS/I2Vf/NJ6Q3WA3t4p1R16IPEAeMaJCg2hsIloJSUvyqGNqXEo5iX9b C95c4JHu7muzRpReUvNdnBAEYJHoCw9iiyX64qy7ShHGoTOsf2jjw9tmrlnzfGX2x2x0 kdcP2lMAIZW8oaVTOy7Vn1icZpgP/VhReD5X25fcdOS40BsEVyNC5nMM/IXuqt1tdgyd BIrvaUAIKR0K+85q7awSK9bR/BblFRm7F/yGYNOp3DXDhvEGaUTf9I0dvn1R5WUTixZY eOPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XiJli2Fd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si12989575otn.241.2020.01.16.15.39.00; Thu, 16 Jan 2020 15:39:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XiJli2Fd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404542AbgAPXhm (ORCPT + 99 others); Thu, 16 Jan 2020 18:37:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:50024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390085AbgAPXhg (ORCPT ); Thu, 16 Jan 2020 18:37:36 -0500 Received: from X1 (nat-ab2241.sltdut.senawave.net [162.218.216.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC8AE2072B; Thu, 16 Jan 2020 23:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579217856; bh=LNLkwqumuCRsUZzAEzSEPyLEs54KO1X1kXB8A1qAvQw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XiJli2FduQhRgI8pXXx0H4Mh715uj9Rkkyyx6+ApiYXPlAB0n5ofBPOz8OI2HhrBN ZQONr0gbIy//k0a+OQVnS0X+Gz8xKuwbw1lhBCN1S0fr8Xf/c2jLKvab/e1zcdVUTT Eue2nsmA6xgn/tTSsHwXAQlqm2NaXo/VvouCw96Q= Date: Thu, 16 Jan 2020 15:37:35 -0800 From: Andrew Morton To: Qian Cai Cc: Alex Shi , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/vmscan: remove prefetch_prev_lru_page Message-Id: <20200116153735.3090629f3b40bd850c66bd18@linux-foundation.org> In-Reply-To: References: <739f4470-8dfe-bb2f-8100-2134f48868b6@linux.alibaba.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jan 2020 07:26:23 -0500 Qian Cai wrote: > > > > On Jan 14, 2020, at 9:33 PM, Alex Shi wrote: > > > >  > > > >> 在 2020/1/14 下午9:46, Qian Cai 写道: > >> > >> > >>>> On Jan 14, 2020, at 7:55 AM, Alex Shi wrote: > >>> > >>> This macro are never used in git history. So better to remove. > >> > >> When removing unused thingy, it is important to figure out which commit introduced it in the first place and Cc the relevant people in that commit. > >> > > > > Thanks fore reminder, Qian! > > > > This macro was introduced in 1da177e4c3f4 Linux-2.6.12-rc2, no author or commiter could be found. > > Looks a bit deeper for this, and I am not sure if it is necessary to remove it especially this does not cause any complication warning noise, because the macro looks like a part of API design to have a pair of both read and write version, even though only the write version is used at the moment. > > In theory, there could be users for the read version in the future, and then it needs to be added back. Sure. A problem with leaving it in place is that this leads people to assume it is tested, which it presumably is not. I don't think there's any particular downside either way, really. But it's presently cruft so I'm inclined to remove it. If someone has a need then they can add it back (presumbly reimplement it, actually) and test it then.