From patchwork Thu Apr 13 14:50:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 83019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1105011vqo; Thu, 13 Apr 2023 08:07:08 -0700 (PDT) X-Google-Smtp-Source: AKy350YUHX5V3HKBbn7u6asVJZGLCb9ePVCSd0ARDV256oLRrnUGfmt20Ap09lt4uuypEa5VfOKi X-Received: by 2002:a05:6102:9c7:b0:42c:6b1a:62a0 with SMTP id g7-20020a05610209c700b0042c6b1a62a0mr1037541vsi.6.1681398428182; Thu, 13 Apr 2023 08:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681398428; cv=none; d=google.com; s=arc-20160816; b=n+frn5NLUPB3dXFU3/nJkJjHw5Q15UkS8clfB7wz+cN1kMILDzQlrTIdLpplUiSKu4 tnO2z8V3rOOfj64sfQKas0bd0b9+TfhHTnvA8YkPFtg+Cf8AZKLg6CCt2OamEpqXm+/i zQnJ+tJlPdcTrh6JerVEzA84FIYj3AV1V1auZhLCBeBM2XwvjD5tXsF3ehsaqBxGTmAD Yrg31ozf0ytNwCVzfF4/21QU+oPivdt1kxpzVE1lx8BNUiQh7/0EBEQj5gbq0hM0JZaB C/O67Rf5Wm8WOWijmpJZLUafztgwCK7Z+BtlRoZC3KyLu1l7D8Oz7vptJkvRbktmCs77 aJdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+rrXLnK5Gnoo7YdfstcaCEjOBmuoQcNBfejpuOhWiSI=; b=FG3D3a7QyW19zRKsG7pOqR7EZIAqrAM10rVMyaQxHJPCL5gbhnP09h9IBojQnmXBjq 3Qr9830jpvDKI4E0BKJBQjCCY4zAmcmqiVnOVgnyigdGSwb9n1gYmudKSGdFzbDEQfCv uEyLdH0ZQNH/dzCC9v+vu7YNPZWnlDqbHR6WScA230skkshXgbnFHk/dg6UZgpO3drjP CA/9x6QNz/zJHtwoRjU+Of14Lsfxcg31YNmNppHbLEoz8y3BRaXmqzi6+cxL4UcqWeAW 1Ewd6l/H5GWVmxOQABrv2bG1GiAxh8jEtBwHHcrrB+O8V4zhGlj4/YnA2edQCJi55BYe SgrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SxjdRtsf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020ab02494000000b007661af4e6e3si390524uan.159.2023.04.13.08.06.52; Thu, 13 Apr 2023 08:07:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=SxjdRtsf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjDMOup (ORCPT + 99 others); Thu, 13 Apr 2023 10:50:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjDMOun (ORCPT ); Thu, 13 Apr 2023 10:50:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC0C9138; Thu, 13 Apr 2023 07:50:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7B09B63F31; Thu, 13 Apr 2023 14:50:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82361C433EF; Thu, 13 Apr 2023 14:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681397436; bh=Zp14WLpMOyA9wKkZ+ALcUNnm0KONCzHc0Ay7MkAege4=; h=From:To:Cc:Subject:Date:From; b=SxjdRtsfCmBAnK84WP9KAe9BuoRsikWYtsQHP/JiUNI7cLaVVNGstVzMyKkBkr1i0 Vb2GY28J3Xvjcoy296o3DiFQ0cRBPRpxbH59bRxiqwH7LxGDlpuwU07UwCd697Cipd W5ZxWX2HAX9KK608ZXgtiRWAuz8VMbg/nN5aZzA122jht7Tv0qwWlaPcBbHMDZtJ9Z JXPTAkZBQwvOeSH0CAZ/AhbbBEXAXUBRgmXgmap5vXLtimKzkwcH3X8aYvdlW1vuoP kEA0hppSdkIs8GJALVbD/r3I2UYOtAmDuAPOtBFuFgFwNQsGUiawA+Nvr90aYTEUkp 93If4Vb6b1elA== From: broonie@kernel.org To: Theodore Ts'o Cc: Andrew Morton , Christoph Hellwig , Linux Kernel Mailing List , Linux Next Mailing List , Matthew Wilcox Subject: linux-next: manual merge of the ext4 tree with the mm-stable tree Date: Thu, 13 Apr 2023 15:50:31 +0100 Message-Id: <20230413145031.3526017-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763073828988383466?= X-GMAIL-MSGID: =?utf-8?q?1763074038579397977?= Hi all, Today's linux-next merge of the ext4 tree got a conflict in: fs/nfs/file.c between commit: 66dabbb65d673 ("mm: return an ERR_PTR from __filemap_get_folio") from the mm-stable tree and commit: e999a5c5a19cf ("fs: Add FGP_WRITEBEGIN") from the ext4 tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. +++ b/fs/nfs/file.c @@@ -335,9 -326,10 +326,10 @@@ static int nfs_write_begin(struct file file, mapping->host->i_ino, len, (long long) pos); start: - folio = nfs_folio_grab_cache_write_begin(mapping, pos >> PAGE_SHIFT); + folio = __filemap_get_folio(mapping, pos >> PAGE_SHIFT, FGP_WRITEBEGIN, + mapping_gfp_mask(mapping)); - if (!folio) - return -ENOMEM; + if (IS_ERR(folio)) + return PTR_ERR(folio); *pagep = &folio->page; ret = nfs_flush_incompatible(file, folio); diff --cc fs/nfs/file.c index 1d03406e6c039,2474cbc30712a..0000000000000 --- a/fs/nfs/file.c