Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3873581pxp; Wed, 23 Mar 2022 07:22:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyofB+IUpLrZL3F/fEcXpCQ9eAyF1wrdXuyr42uaG6CB+rONC+DQmB7ZfKaUYk0EwWDo3SM X-Received: by 2002:a05:6402:2549:b0:419:6545:62af with SMTP id l9-20020a056402254900b00419654562afmr381126edb.120.1648045332752; Wed, 23 Mar 2022 07:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648045332; cv=none; d=google.com; s=arc-20160816; b=d1Z2w2Ez/htMARY5s8YNBWAuA2uZzLA0ysDDpVOdgP95QXMISLIIDcdyaiVbOeZebF LdtXRdCJo6Hv9IjleRVIdxf9ZIJD70NrT5fXx82Cx1WGXSWsULKuGWatGjIiJD5bA+ru JdxbIWw+ZOJeFVyFYkN1XXzH2jywecbiu8vDJTabT8o+KbbMcaYO7+zgX6M83K1L5qeL KgL0x2zIK+/1ES7N7es2WTIFcbhV7qa8qG5qtvrj0t1X9pQFWAT6bmaNO8qQqpWHZRPI My3Ho/ejBRH52yUEt4vTdubLT8JUaV5BXXLDMlnuZrpXJPk+41odND6Hu98KdLXnBoWl UerA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RTdntLwWP7UcoqdxIbtO2gBEwkCYFZ/lgUjrNqmrzxY=; b=rd0ajHmXEDwIBKPR2cUUYQMSUKvuKCOVUZ+vGVpZifjDfQQLyOXjZb/Qd6U75/ofbS e+A6nRyIZHaUkh1n2lwfAs43Y2YQfhjm0x7Xhes9DtZyk6Hmiu30gUKIIvXnGfXlT28j g/snlKFDhJrCoJcSi6Xo617Vc+qH+afMmElPDDe3qct4aJcga/pKsJ1zBFB8ZoONo66C F+uFiYtukg8ZSC72+26utDYKmpOtBQ6cuw48FMn79HiGOCpcltKPi3L4T/Y/kcGBBs/8 DTCPjSov/rduLFxqaK5GYLdlUlf6aTcr0/BxQifpVmeSoF7qTTU/mkzBsPm2YEfnKWzZ 5ppg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=T61hvAd7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a50ccc4000000b00418c2b5be9esi15586439edj.384.2022.03.23.07.21.41; Wed, 23 Mar 2022 07:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=T61hvAd7; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242073AbiCWJbF (ORCPT + 99 others); Wed, 23 Mar 2022 05:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238098AbiCWJbF (ORCPT ); Wed, 23 Mar 2022 05:31:05 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFD316213E; Wed, 23 Mar 2022 02:29:35 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-2e64a6b20eeso10108077b3.3; Wed, 23 Mar 2022 02:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RTdntLwWP7UcoqdxIbtO2gBEwkCYFZ/lgUjrNqmrzxY=; b=T61hvAd7cJiSJIGmZk3tv26qPToF8HN5U/lQ/m08EAvWa2SmtE6To2nDTNf374lnhT GPKcxTCuuPtJXa5gmEw+gX2f1CnhO+VLeiTWr2XmuaL6dVuTtvBLqYJtSXHPPzFlHs5d Ri/6Ne7YUODQm8T3VMLlOYE4KOjFASZnLeZ8IqhaE9iuhu7q9KNKFvXczv/h7Sgwfpuk P+Ovst/9RkkokTnzdrENQ2gJQlJX7TsW9sSFizNo9ppyZqVHj+5ghhwpu4GTzkQKNuQt kjsxCrJT+nOf4qUF+msiy+R5Tj/zMWQPy3RSPf7HIGYLtyZhwIakdPpQAIpFcLhlFiZB DguA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RTdntLwWP7UcoqdxIbtO2gBEwkCYFZ/lgUjrNqmrzxY=; b=qypTNF9dh1L6sa75Cer/YX4VSQGLoJCifVbTmABDtyD7UZ+C67wYVHM6sta0TLaqqX PMj2+lPfRJ9L0lyCD9ff9Q5vL2L6UzzJglkIUHzFqp9faI0GLtjRr6I6G+hUBPn/wLxc Tqgjk/NTjwUrsQEHLHAjl1nzcmzBITCV6BoG6Rt4u9KS7o9w+n/uGS3uG3QYalyhfETb IY4ke6sTxRJmMHNpMrRmu/4Evhp1PuZrp6/zBohF7dqAZ+WrDzieHzuGGx72AFn/ArKS spvgjmZYjX0OHYo9UBWDVtiVO8laK3Mv2KqhoJhRZIkVvm3ucb73d7ZM7O/axBETbXMt 5qgQ== X-Gm-Message-State: AOAM530JFmh5NORM5ZVh+pt7+5AD8TJasIIE64vXJ/Hwj3FJAFxe4CEz 0nLrxAFHvH95BbXpeYyiNQx7KCsBoXQ7n+EN9FA= X-Received: by 2002:a0d:c284:0:b0:2dc:37ec:f02c with SMTP id e126-20020a0dc284000000b002dc37ecf02cmr33701891ywd.503.1648027774854; Wed, 23 Mar 2022 02:29:34 -0700 (PDT) MIME-Version: 1.0 References: <20220124091107.642561-1-hch@lst.de> <20220124091107.642561-2-hch@lst.de> <20220322211915.GA2413063@roeck-us.net> <20220323064248.GA24874@lst.de> In-Reply-To: <20220323064248.GA24874@lst.de> From: Ryusuke Konishi Date: Wed, 23 Mar 2022 18:29:23 +0900 Message-ID: Subject: Re: [dm-devel] [PATCH 01/19] fs: remove mpage_alloc To: Christoph Hellwig , Guenter Roeck Cc: Jens Axboe , linux-block@vger.kernel.org, linux-nfs@vger.kernel.org, linux-nilfs , Mike Snitzer , Philipp Reisner , Konstantin Komarov , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , device-mapper development , "Md . Haris Iqbal" , Lars Ellenberg , linux-fsdevel@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton , ntfs3@lists.linux.dev, Jack Wang , Pavel Begunkov , drbd-dev@lists.linbit.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Mar 23, 2022 at 3:42 PM Christoph Hellwig wrote: > > On Wed, Mar 23, 2022 at 06:38:22AM +0900, Ryusuke Konishi wrote: > > This looks because the mask of GFP_KERNEL is removed along with > > the removal of mpage_alloc(). > > > > > The default value of the gfp flag is set to GFP_HIGHUSER_MOVABLE by > > inode_init_always(). > > So, __GFP_HIGHMEM hits the gfp warning at bio_alloc() that > > do_mpage_readpage() calls. > > Yeah. Let's try this to match the iomap code: > > diff --git a/fs/mpage.c b/fs/mpage.c > index 9ed1e58e8d70b..d465883edf719 100644 > --- a/fs/mpage.c > +++ b/fs/mpage.c > @@ -148,13 +148,11 @@ static struct bio *do_mpage_readpage(struct mpage_readpage_args *args) > int op = REQ_OP_READ; > unsigned nblocks; > unsigned relative_block; > - gfp_t gfp; > + gfp_t gfp = mapping_gfp_constraint(page->mapping, GFP_KERNEL); > > if (args->is_readahead) { > op |= REQ_RAHEAD; > - gfp = readahead_gfp_mask(page->mapping); > - } else { > - gfp = mapping_gfp_constraint(page->mapping, GFP_KERNEL); > + gfp |= __GFP_NORETRY | __GFP_NOWARN; > } > > if (page_has_buffers(page)) I did not test for iomap, but this patch has fixed the same regression on the latest mainline at least for ext2, exfat, vfat and nilfs2. Thanks! Ryusuke Konishi