From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDFC7C49EA7 for ; Mon, 28 Jun 2021 06:22:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 89B80619B6 for ; Mon, 28 Jun 2021 06:22:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89B80619B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CE4EC8D0025; Mon, 28 Jun 2021 02:22:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CBC658D0024; Mon, 28 Jun 2021 02:22:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B83818D0025; Mon, 28 Jun 2021 02:22:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0227.hostedemail.com [216.40.44.227]) by kanga.kvack.org (Postfix) with ESMTP id 891DE8D0024 for ; Mon, 28 Jun 2021 02:22:38 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 6D6A2180ACF8B for ; Mon, 28 Jun 2021 06:22:38 +0000 (UTC) X-FDA: 78302138796.18.BF249B8 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf19.hostedemail.com (Postfix) with ESMTP id 24B459001E68 for ; Mon, 28 Jun 2021 06:22:37 +0000 (UTC) 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=VSsqQEp1WXFodl078mceGS44th1ZKo/aF0XDPZZ2Tcg=; b=QdwZdGg3j+z6Dm6AzMGqoPOdKB STViCsfUG5LlsQiTEzIiB1KCSidtIA35CI2nNppfCeJqj2nxuStGwikeyKajGSCthOxCArEZqJ1zz IqGb2hoESRLOxS+YjPyKB+iUSJpmtlolyX9LRkrFrcjpNlliznJiTE0eYZAF8WcA9o/Kwh8JwIvMR MnpRGINmpt9mNyMaOTSsENwsSY1Ukg1R/5p3Og5GJ+j3yZI744XRg7sKKPhfPMHV6JvnVBUzhLzbK jDWjwTehNGInf5Rbu2FL4Ez6V8ZSUtOtcl+J30WILnnK+9IlByQswZeoweluclC06LIePV22520aA z/Ev1mBg==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxkdh-002eSv-4o; Mon, 28 Jun 2021 06:21:11 +0000 Date: Mon, 28 Jun 2021 07:21:01 +0100 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 05/46] mm: Add arch_make_folio_accessible() Message-ID: References: <20210622121551.3398730-1-willy@infradead.org> <20210622121551.3398730-6-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=QdwZdGg3; spf=none (imf19.hostedemail.com: domain of BATV@casper.srs.infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=BATV@casper.srs.infradead.org; dmarc=none X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 24B459001E68 X-Stat-Signature: 3prig1ua4m3rrgueh5wxgm6rwm3nz7tt X-HE-Tag: 1624861357-749095 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jun 24, 2021 at 04:57:29PM +0100, Matthew Wilcox wrote: > On Wed, Jun 23, 2021 at 10:00:37AM +0200, Christoph Hellwig wrote: > > On Tue, Jun 22, 2021 at 01:15:10PM +0100, Matthew Wilcox (Oracle) wrote: > > > As a default implementation, call arch_make_page_accessible n times. > > > If an architecture can do better, it can override this. > > > > > > Also move the default implementation of arch_make_page_accessible() > > > from gfp.h to mm.h. > > > > Can we wait with introducing arch hooks until we have an actual user > > lined up? > > This one gets used in __folio_end_writeback() which is patch 24 in this > series. With arch hook I mean the ifdef to allow the architeture to override the folio function. Same for the previous patch, btw.