Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4179980pxu; Wed, 9 Dec 2020 10:13:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAmNlm4zGiVf+H3BSl4oxJV8eeANh2LXsXhaGU33CYZBKEFWA8WifJMYqN/YyyVuVvNndm X-Received: by 2002:a50:e688:: with SMTP id z8mr3256372edm.129.1607537616104; Wed, 09 Dec 2020 10:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607537616; cv=none; d=google.com; s=arc-20160816; b=CJzcFgVUM55JPHXTiYvwDsTweX224lm7YOArFRFVAGrdESojGFOeqG+nuQISSbfgnE fPFw8NlKl/mXxslL0YxrFN9MbrdZAZ1XCfA+pAbR1QKqQQ0n+f+j0MtgOHYLk3JFtBu5 74cMOOtR0R5Ed2Skt7T7U3wKOUmu3A+RYGVe2uhufpdhosVNbXl/dhYrQ2UXn0UdelC0 Ho8QlNkKZx28SYucqAhqCTs+TNclKNWlzwsOrwJG37SKYPWqDurYSNmrY7O/GcJXkoYd qnyw3STuIgrg1D68janeLpFvb6YMxnp8wJc9Qhewt65eDDLX7/1p9HAZzWqwNZIqyqL7 VabA== 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=12hoQABG9FckSJ5OF/hyVqUM6/uXu85LiNPYtk8cpMI=; b=qtHVByRr/FqwYBxSsJVaX8ODb64Ynppy/2qomihtxXC752BKuLXc7NDtABhXdxt8KP h1W+IJZuAt86t7ny2/RvfZ8oNPBnwqcC5+0dHEkStD88+ozfGUfPBhzOE06YG5KfH7WS lJPGt5GsGRB7Fj8XwVPWND5El/69L0fBZyZZyXD3R7Qr4XM3gxfAT6CpdKjXhxA0m9f1 utj+Q7vC8FYgbPMEjGa/dfBrqtpTr/C3xLP3thzwgNGRsic6Qsmij/lHp874Udui7KnC p/LAetX4vlc32rJShAZwr83WUDlGw7DhJN0Huq+5ApUk3qPfSCUmFLJCsCFKLTxGugwk hX1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KOFYpz3R; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si1297824edj.524.2020.12.09.10.12.49; Wed, 09 Dec 2020 10:13:36 -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 header.i=@infradead.org header.s=casper.20170209 header.b=KOFYpz3R; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732768AbgLISGp (ORCPT + 99 others); Wed, 9 Dec 2020 13:06:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732757AbgLISGh (ORCPT ); Wed, 9 Dec 2020 13:06:37 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5013CC0613D6; Wed, 9 Dec 2020 10:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=12hoQABG9FckSJ5OF/hyVqUM6/uXu85LiNPYtk8cpMI=; b=KOFYpz3RqQPlHcHKG+ldL7fwiD EBZrIoPnC6678N22HWrStGRcaNFqMuAKDX+c7AXHDobF4zvNKem7Nc6+7tRp0ns0QxsbXkRt9gqni ZMcfHsgE0J2S3DqFYPzx86o4GWRpq2WCz8qXwTfEUgSC/aZ3deUsXyp5JBz34nLjRputdUuOcbkgz KrtZsou0i1VpJhhWcxDSqjpvii23UJ7pLGahIeV3dlvry3RtMN6q/72lpUhQoiC7iOt1cRHb961QP MrIvoK0eTuAF31bqurJWyQK7bNyBhuW9D9stCIYSytyX6YdJyw6KD2Trpo49InOPcQbCSH5BPTrRO ROt5xuIA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn3qa-0007ZP-5Q; Wed, 09 Dec 2020 18:05:52 +0000 Date: Wed, 9 Dec 2020 18:05:52 +0000 From: Christoph Hellwig To: Stanislaw Gruszka Cc: Matthew Wilcox , 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: <20201209180552.GA28692@infradead.org> References: <20201207081556.pwxmhgdxayzbofpi@lion.mk-sys.cz> <20201207225351.2liywqaxxtuezzw3@lion.mk-sys.cz> <20201209144628.GA3474@wp.pl> <20201209150826.GP7338@casper.infradead.org> <20201209155148.GA5552@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201209155148.GA5552@wp.pl> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 04:51:48PM +0100, Stanislaw Gruszka wrote: > 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. So what happens to BTF if we change this area entirely? Your IDs sound like some kind of ABI to me, which is extremely scary.