Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4435346pxu; Wed, 9 Dec 2020 17:46:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJznxRffDyZ78VLt+HaYcZSSwWFURn6WEZaKoeCxdFaXE91gcECDP3RCRkeNTdM6GXjYxWe9 X-Received: by 2002:a17:906:cce9:: with SMTP id ot41mr4528408ejb.46.1607564764078; Wed, 09 Dec 2020 17:46:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607564764; cv=none; d=google.com; s=arc-20160816; b=bEvlLeMvDziMVhKYrTLkqhzpjP/cgvMlw3kauDougkOR08jHavR6uOSMUQUsJwI5Rt IyGkfpIwEPV8oFa7AARKKxxfeqKT/DpXY/wH2qFXsp6vqWy+YuLwoTTd4EsgUmacQSEH PpG/VQMzCHPWtvwq4LYiiWm+TaAJI59JeFgf52eTLDvsWwKv9QgQNj9rZK9BkYifE53+ raPezymHtoqjLK2WLQVRLutcEdEt5nN0xxB+WmBXEI7kwPj5BKz6B7VOa7TwuPGUoJds OaRjLK9gKYurDFFBe3SqMYx76oioV/hsD5csyR5lwbMe80hm6u1GiI5AAbpv+sD5xFxA Td3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3FjT/q8mbkb2XyA2MEM4/BuPSHX2DrgXduiPY1UbFxg=; b=YVO5ajV7mA6PDuvv1J9i70vTsToxbhsj+rh8gJyQ1HmcuLrUVFwm7UcCALqu4EHC/u iHk0TLCi76pkyIDMf6ZCC5iUAOsRe1bzzmF44o8sfF7xFh5y8MkZOV4L2DYX2nGb1UMX lxocQJ6fX/lvXJR9284ocNse1LLN6ZE37WXV8DRbmaJ6pRMdSO/ZNMHFx2esAXZyPobK A5zxHIPGvSllm7xs5O9U436hXH1qpHLUwRKO/UQKnWNV6TiNWtLd/4q9zZdL/exxePlq uFvtKcNTNFxDNAagcS7BhIqdbmaUU2Ku3MeUeWTa6JXSd3Sxjm0vbye7py1jRQSH0Jk8 r7KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=aWOibTlM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp28si1735937ejb.10.2020.12.09.17.45.42; Wed, 09 Dec 2020 17:46:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=aWOibTlM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729737AbgLIPwy (ORCPT + 99 others); Wed, 9 Dec 2020 10:52:54 -0500 Received: from mx3.wp.pl ([212.77.101.9]:49310 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730948AbgLIPwt (ORCPT ); Wed, 9 Dec 2020 10:52:49 -0500 Received: (wp-smtpd smtp.wp.pl 24471 invoked from network); 9 Dec 2020 16:51:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1607529109; bh=3FjT/q8mbkb2XyA2MEM4/BuPSHX2DrgXduiPY1UbFxg=; h=From:To:Cc:Subject; b=aWOibTlM23BJzFKeIxtiUyvmCh0s2p+MN1SBv4fVFYIcEJpBdr9w5K5HK8rV5OPG4 PJtm+eF0dsMxueE/FAOoPaxZ6DKQqbQbIViVOjGa83n76IJxvpDoB0UD/+fuRO/Wq0 iII6F1UvtKgqU0GWUujmzPzpXQ8pWV16qfwLJXv4= Received: from ip4-46-39-164-203.cust.nbox.cz (HELO localhost) (stf_xl@wp.pl@[46.39.164.203]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 9 Dec 2020 16:51:49 +0100 Date: Wed, 9 Dec 2020 16:51:48 +0100 From: Stanislaw Gruszka To: Matthew Wilcox Cc: Alexei Starovoitov , Michal Kubecek , Justin Forbes , bpf , Alex Shi , Andrew Morton , Souptick Joarder , Linux-MM , LKML , Alexei Starovoitov , Daniel Borkmann , Josef Bacik Subject: Re: [PATCH] mm/filemap: add static for function __add_to_page_cache_locked Message-ID: <20201209155148.GA5552@wp.pl> References: <20201110115037.f6a53faec8d65782ab65d8b4@linux-foundation.org> <20201207081556.pwxmhgdxayzbofpi@lion.mk-sys.cz> <20201207225351.2liywqaxxtuezzw3@lion.mk-sys.cz> <20201209144628.GA3474@wp.pl> <20201209150826.GP7338@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201209150826.GP7338@casper.infradead.org> X-WP-MailID: 729eafaf8c9901c095d530a4dd2b5e0e X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [4aPk] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 03:08:26PM +0000, Matthew Wilcox wrote: > On Wed, Dec 09, 2020 at 03:46:28PM +0100, Stanislaw Gruszka wrote: > > At this point of release cycle we should probably go with revert, > > but I think the main problem is that BPF and ERROR_INJECTION use > > function that is not intended to be used externally. For external users > > add_to_page_cache_lru() and add_to_page_cache_locked() are exported > > and I think those should be used (see the patch below). > > FWIW, I intend to do some consolidation/renaming in this area. I > trust that will not be a problem? If it does not break anything, it will be not a problem ;-) It's possible that __add_to_page_cache_locked() can be a global symbol with add_to_page_cache_lru() + add_to_page_cache_locked() being just static/inline wrappers around it. Stanislaw