Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1657605rdh; Mon, 25 Sep 2023 22:20:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEpWRQjFdS1bCqnqY2fZ+Hz6AsMFaGSiQmUd4hoQLIVqpPp4+j7rTXuu5gWwcqxzgeMudc X-Received: by 2002:a05:6a20:3ba8:b0:152:5f8b:359a with SMTP id b40-20020a056a203ba800b001525f8b359amr6064360pzh.28.1695705618523; Mon, 25 Sep 2023 22:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695705618; cv=none; d=google.com; s=arc-20160816; b=UYBOwFr74BsywZkuKshk5FwKI5JcgTbJ4mV6JLsXTe8xeuqJfh94KCB2IIoG06ZwRw ep+J1Uj0WabmAsv6ALIR3F9DERvhYV8wYSUnweK2Nuhl6a6rR93oWWA5Y/t860e2oaxG A3EHJt/DgrXFrKpuzLSu7zt1RWGZ+UR1kfYq11XW1NEsBRMFRvGD55Z/DV8H+kkhZmR2 71wI5VnoGCnC1kMkA+jv/VO4KmwWxJzBJiBlsuE5UbjUys/qugqmlHVwesbAcohVPs1I AguphmjDa+uBViqgr5hN4B2vMGwEq0NrO+GR23py7sd0FKThA72837ES0MLDKAPjAdLg /e8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=6pA/zaPvex5yELwVfoOjyd303wllUNzvBUF8400bCWo=; fh=i5dSJUbrx4x0bDefbB9Ls87FUHsIyIVoy5P+46PoCg4=; b=bjv1kCzb4xXT3d2NhJnGCofDck64K7xDJeDbilNCIcZUNsOBzxhIOJDue+Z27PLtqn lTwd+QZKY30h4Km0GydGz81kpp+GM1vNKmWsypOHVDW0fFHVzgJHuMRG0/cSZ9/MnAGR 5UrQLPcNkZeb8tcQSSD0bAoTsy4/fNyCCoxTjuCVVX4b3H+IUnZWRiBMFvsCi0ovg1lq NitJM9vQMdnnHkCZI935pu2oRtQ5Xh/t3R/uVqDEaJkC1yGddAoYLtV+ZNKsvMgvCtyo Gr7KpZUbMJ9gOvdCME3B3L2K2BwmE5WjXJYiVeUbAunr4fBsQ940F/YigsJ0ToG5kFoQ kfyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=pTNyKe50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t14-20020a1709027fce00b001c6130ac188si4635471plb.532.2023.09.25.22.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 22:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=pTNyKe50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 994F9817C1FD; Mon, 25 Sep 2023 17:17:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbjIZAR3 (ORCPT + 99 others); Mon, 25 Sep 2023 20:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjIZAR2 (ORCPT ); Mon, 25 Sep 2023 20:17:28 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7EF410A; Mon, 25 Sep 2023 17:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1695687440; bh=6pA/zaPvex5yELwVfoOjyd303wllUNzvBUF8400bCWo=; h=Date:From:To:Cc:Subject:From; b=pTNyKe50ZmrVhi1KeLlFt+dD/+nQn+4vhUD3Tj6LF44QXfBdQMtHl+7dII8tQbUaD zCBUiFCW5Uh7kMSUK0cyY5oOAGQl6Vy/Ho+73lqtZI5Ri2LVn270RhZauNVf0q4alw E87ZHx7gPsOOEqlzSYPUDq5Xm2jhSnprw0TKjLA78VtGkofDtS/0WICkHcwBlR9VBQ 91wfoOKK1YPgoSHQe9wA8O0jtbz9FcAMnuZT1RM1/pBK+2pJSZonxMWGdyTXbnpGg6 0lRCRJhfR4aFnb4iat8KOq66w6SPX54nVQ5oWQT5/ZRgGVTBH/DvaUL2fmjs3yW67W 6xuGxWP0bIZng== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4RvgKq33jSz4xGC; Tue, 26 Sep 2023 10:17:19 +1000 (AEST) Date: Tue, 26 Sep 2023 10:17:17 +1000 From: Stephen Rothwell To: David Sterba , Andrew Morton Cc: Christoph Hellwig , David Sterba , Linux Kernel Mailing List , Linux Next Mailing List , Qi Zheng Subject: linux-next: manual merge of the btrfs tree with the mm tree Message-ID: <20230926101717.0237a18a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/_id7ysS3XdMqtj_gQ9I9Q9R"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 17:17:30 -0700 (PDT) --Sig_/_id7ysS3XdMqtj_gQ9I9Q9R Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the btrfs tree got a conflict in: fs/btrfs/super.c between commit: a95330e8e416 ("fs: super: dynamically allocate the s_shrink") from the mm tree and commit: dd99b78be273 ("btrfs: open block devices after superblock creation") from the btrfs 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. --=20 Cheers, Stephen Rothwell diff --cc fs/btrfs/super.c index b1798bed68f2,c41ed5a78ea4..000000000000 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@@ -1518,10 -1457,24 +1457,24 @@@ static struct dentry *btrfs_mount_root( if ((flags ^ s->s_flags) & SB_RDONLY) error =3D -EBUSY; } else { - snprintf(s->s_id, sizeof(s->s_id), "%pg", bdev); + struct btrfs_fs_devices *fs_devices =3D fs_info->fs_devices; +=20 + mutex_lock(&uuid_mutex); + error =3D btrfs_open_devices(fs_devices, sb_open_mode(flags), s); + mutex_unlock(&uuid_mutex); + if (error) + goto error_deactivate; +=20 + if (!(flags & SB_RDONLY) && fs_devices->rw_devices =3D=3D 0) { + error =3D -EACCES; + goto error_deactivate; + } +=20 + snprintf(s->s_id, sizeof(s->s_id), "%pg", + fs_devices->latest_dev->bdev); - shrinker_debugfs_rename(&s->s_shrink, "sb-%s:%s", fs_type->name, + shrinker_debugfs_rename(s->s_shrink, "sb-%s:%s", fs_type->name, s->s_id); - btrfs_sb(s)->bdev_holder =3D fs_type; + btrfs_sb(s)->bdev_holder =3D s; error =3D btrfs_fill_super(s, fs_devices, data); } if (!error) --Sig_/_id7ysS3XdMqtj_gQ9I9Q9R Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmUSIw0ACgkQAVBC80lX 0GxkBwf/aelgXOkPAHAzzfOSFStjrMFp13Fxem/Furtxm+TRrr2dKzKhIbdUjVLP I8yZsjxmHsOog50iLMakPRzWUSSkUUNWKxaDYgOHMyfzSINUqc55D5flmnOdz6ds YVguGbZlLefjTei9Uc2Yzo+nVVdS3C+cExTPLQHgW6tMG8nqupagb5NU/w7oakyU ERFgQ/1cOV/43UsXQKnuQdVAv0QHcZGOx8s3DOfA0h2kQuoYT6C03yNvkOSmBO5O ouKX1DCtPfmvYkUFhVjlTbeBGJU6wQqR8IawPtwTG6Pudu7n2LuePlx242ktVkTe 7CzuN94mVgFUxJQ4y/Iq1+T79vulFQ== =gsGP -----END PGP SIGNATURE----- --Sig_/_id7ysS3XdMqtj_gQ9I9Q9R--