Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5733551pxu; Wed, 23 Dec 2020 04:14:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzE+Lynk5oBXWcrZ9hiz7dgaAXqg0WvPkP+2AuMvRgODzfKgRSFc0ifPgFkLA7uzLLBuLPD X-Received: by 2002:a17:906:720e:: with SMTP id m14mr22384238ejk.161.1608725653213; Wed, 23 Dec 2020 04:14:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608725653; cv=none; d=google.com; s=arc-20160816; b=rUP3Cr/yRRsqnG0iK44l+ObFCGCoS8si1EBecgK2tfRMp96tzOhDX4cuoVVDP32vZV bF0S8TQnjznyyK7s2wTDrdJ8N7sgBOwRKYjvGm8gD6JbIxsUpOQnHi0dJ/uT607LiwtI q3rH4BZEVAwJ1sFhK2ZSUFBe3TqYnyx+U1oy95FGxub10YwvMAKT062i+gs3VoOVRpFi KI29KhoaQv7heIrdqun2Pj155Twy70vWsu0zGf3qYZ8AkIdxfp+06dEnizobxyHo3T0c P4LH+GZ0c5F2z2FjKkNXh2ol3vR4fd2B92NwDo+IqXsRZbQNzQGXGcPurnALMGvwe0Bj g9Gg== 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=8oaG0qKqyS1F6NiV0JGgSi0wPiRzch5yyHCD8liSGYg=; b=0ncDPSVkXOo3zxBeM06KNdFuGexwiO/8A66U4qpLEIAxyVtP+nYEpajvP1kl/vn6XH AgeN2UsNzA6gvV4pB9agUirgdEun8naCK8EuZg3bSNwAA7dnF05CaCuG/AsXWWLUnbcj 6C40FBenPWmqdu83Wss4/CRfeuJZj+tXR3cNzGf502oI2bRPpNTLhN5N6yItfCkB8dGL LEN7aza157iPFfqWiqzdPsRjmHbsXmKPKB/GsEDUg1TWQL+kF6wd/jBjbx/bhl0qehrY Gy5hGvSSXHnsno0XJhjHoLoTPquQknJCTBbGCikcT6TtVWMyudQ7AGKpDV/+mQwtMKiV P5DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=k5jgYvcw; 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 jg40si11975369ejc.197.2020.12.23.04.13.51; Wed, 23 Dec 2020 04:14:13 -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=k5jgYvcw; 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 S1728449AbgLWMMW (ORCPT + 99 others); Wed, 23 Dec 2020 07:12:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728409AbgLWMMW (ORCPT ); Wed, 23 Dec 2020 07:12:22 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26174C0613D3 for ; Wed, 23 Dec 2020 04:11:42 -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=8oaG0qKqyS1F6NiV0JGgSi0wPiRzch5yyHCD8liSGYg=; b=k5jgYvcwhPV8Yd9aVd3xqH0GHX mAk+cTRNgTcC49Y1IpJ9fcJtYYtLHo2lY45wUWgGP7TBbo64BwsmdPAJZLbz6dVbzoqRjltpfOrU9 CuXdIVz8aElqF1RtDJ78UH9oZ1qh1yfKTb2SLWaMH1ZeU01WAdUYCkLwmtSsOL7j1cobMva/RutPV zFchi+aq9/aRvpaRFPnuQ4afqKN3sPsPIroaH5ySCYT95oZ7UNVqF+PRl0lC7kL1x8KSW8YKv2IWn yaBMvKVk4Fi8L0wiVdw1AQXH+CAm4jsS+AVtwKYB+/ny+FyJw4SRqWIMd6pL1nRp6EwWureYZbxf3 MrTv4iZA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ks2zQ-0003tT-8c; Wed, 23 Dec 2020 12:11:36 +0000 Date: Wed, 23 Dec 2020 12:11:36 +0000 From: Matthew Wilcox To: Christoph Hellwig Cc: Andrew Morton , Souptick Joarder , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alex Shi Subject: Re: [PATCH] mm: add prototype for __add_to_page_cache_locked() Message-ID: <20201223121136.GP874@casper.infradead.org> References: <1608646792-29073-1-git-send-email-jrdr.linux@gmail.com> <20201222204000.GN874@casper.infradead.org> <20201222155345.e7086ad37967c9b7feae29e4@linux-foundation.org> <20201223083126.GA27049@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201223083126.GA27049@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2020 at 08:31:26AM +0000, Christoph Hellwig wrote: > Can we please make the eBPF code stop referencing this function instead > of papering over this crap? It has no business poking into page cache > internals. The reference from the BPF code is simply "you can inject errors here". And I think we want to be able to inject errors to test the error paths, no?