Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2423895rdb; Sun, 3 Dec 2023 16:56:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IElLT1PMBDt/oi1s8cmNz7oJBzle6juM94pMekYVV1tX9AyBP1DoRKLXac0XX9wbe75Qnr0 X-Received: by 2002:a17:902:f20b:b0:1d0:6ffe:9f7 with SMTP id m11-20020a170902f20b00b001d06ffe09f7mr2883347plc.85.1701651402776; Sun, 03 Dec 2023 16:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701651402; cv=none; d=google.com; s=arc-20160816; b=JFuNxoJXv+TdWN9T/eOBVJTWD8ZAG4mLTKcFW6JJhKjdDdFTQJeLCNoqczbdCsjVi1 Rt4v8aXadclJb+koZEQe/KMl1k+81S0ar4J9lNYy1QqaIRnHA+eQLwXRD1b3U9tnxww8 R4p55gE3CsJzb4HHhuyAOj4W6CbBNComtrR6JRn9YP5pa6Bb7CNgjYRLV2wXiIxnXQJq 5s+xl0iXg/ejvcM5D0sKWybCUJ8yM1f8yo45fJJ4ioH+chF/Vx6mdanjznJcz203rr3+ hmjD/YsPMQqPPuRM/7yYQRyWvf8VqY5eJhWBL82OLToGrSdzh5bO1DYouO57jAcBcLbw ezOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Opj6twM4acMBCpY7T23VTzRC6W4CJ1xxdOLVZ0BFwGY=; fh=3hGat7wn6O8tI1XQgUtltTDMtC4MhhtPB1SYY48yPc8=; b=XVm10ptBFESWzjalCJ6clL5pzV3f2+lnlkqabGGVF2DhmMXiOH0suZcnrvy8qHK5Iq VyaJKCIqbXJjeqkGiLW9986klyys98KKumJpg0aTPRfUP6SeoftI5UTcmdSAGZlzkIHe XTMSIIUhqj9IItKb+/yXWGxYexqVAV1wmpgRloETL3MFAi8MXO/sCSL6fSWjU4UpylEK V8eNMFpUigm0eUsYpebho/uKIQgucDhrH6nOoO1ZpBFAM7hSkWRwMVl6+E/b8QcEOcKR T81Ap3sF4sP0draFbbtq5pxwY7fmf/resqjx4YjNNr8qj/A/UgDO3gvK/89WvAeNOtXS QTKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=PNAnU1fN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l7-20020a170903244700b001cfdfa28b70si7039438pls.469.2023.12.03.16.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 16:56:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=PNAnU1fN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id CC4B8808BD89; Sun, 3 Dec 2023 16:56:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234095AbjLDAvr (ORCPT + 99 others); Sun, 3 Dec 2023 19:51:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjLDAvq (ORCPT ); Sun, 3 Dec 2023 19:51:46 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09CCCDB; Sun, 3 Dec 2023 16:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1701651110; bh=Opj6twM4acMBCpY7T23VTzRC6W4CJ1xxdOLVZ0BFwGY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PNAnU1fNgJ32W0hGwE141ESRcRgmPsdmNRAmufzHkJKRI4Fiavz0IwFyvIRBtLUpf T9ClY2QGqGkGvGUTANJb9Lwqi/BzFxasMIX1jCuD4mn08IpedB0jswkpKUiLuJiHTv I7ujGXEgxPWKcU9XdSM0YKEzxvs4r9b7ztl0khRBEa0E2wypMSpBXQS8SckDP442cV D/vwINh0JzvHvgwPPqT5sgARdrR9Q7Ps7OxlZfBLH9Oa7oRnsqvn5dtyTZLVtkQGlI bV+/GUeaof+/di1naCRaKj1mQtR1YenzV7czHxy5gGqExytOSxomtVvKvKHPyTQyYB VJAvBfYlf78Kg== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Sk4qn6b5hz4xhZ; Mon, 4 Dec 2023 11:51:49 +1100 (AEDT) Date: Mon, 4 Dec 2023 11:51:48 +1100 From: Stephen Rothwell To: Paolo Bonzini , KVM Cc: Christian Brauner , Christoph Hellwig , Linux Kernel Mailing List , Linux Next Mailing List , Sean Christopherson , Vlastimil Babka Subject: Re: linux-next: manual merge of the kvm tree with the vfs-brauner tree Message-ID: <20231204115148.0b09243b@canb.auug.org.au> In-Reply-To: <20231122125539.5a7df3a3@canb.auug.org.au> References: <20231122125539.5a7df3a3@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8r2oWaKZaSmteXC+67jB/fz"; 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sun, 03 Dec 2023 16:56:29 -0800 (PST) --Sig_/8r2oWaKZaSmteXC+67jB/fz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Wed, 22 Nov 2023 12:55:39 +1100 Stephen Rothwell = wrote: > > Today's linux-next merge of the kvm tree got a conflict in: >=20 > include/linux/pagemap.h >=20 > between commit: >=20 > 762321dab9a7 ("filemap: add a per-mapping stable writes flag") This is now in Linus' tree. > from the vfs-brauner tree and commit: >=20 > 0003e2a41468 ("mm: Add AS_UNMOVABLE to mark mapping as completely unmov= able") >=20 > from the kvm tree. >=20 > 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. The current resolution is below. --=20 Cheers, Stephen Rothwell diff --cc include/linux/pagemap.h index 06142ff7f9ce,bf2965b01b35..c2d90588c0bf --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@@ -203,9 -203,8 +203,10 @@@ enum mapping_flags=20 /* writeback related tags are not used */ AS_NO_WRITEBACK_TAGS =3D 5, AS_LARGE_FOLIO_SUPPORT =3D 6, - AS_RELEASE_ALWAYS =3D 7, /* Call ->release_folio(), even if no private d= ata */ - AS_UNMOVABLE =3D 8, /* The mapping cannot be moved, ever */ + AS_RELEASE_ALWAYS, /* Call ->release_folio(), even if no private data */ + AS_STABLE_WRITES, /* must wait for writeback before modifying + folio contents */ ++ AS_UNMOVABLE, /* The mapping cannot be moved, ever */ }; =20 /** @@@ -291,21 -290,22 +292,37 @@@ static inline void mapping_clear_releas clear_bit(AS_RELEASE_ALWAYS, &mapping->flags); } =20 + static inline void mapping_set_unmovable(struct address_space *mapping) + { + /* + * It's expected unmovable mappings are also unevictable. Compaction + * migrate scanner (isolate_migratepages_block()) relies on this to + * reduce page locking. + */ + set_bit(AS_UNEVICTABLE, &mapping->flags); + set_bit(AS_UNMOVABLE, &mapping->flags); + } +=20 + static inline bool mapping_unmovable(struct address_space *mapping) + { + return test_bit(AS_UNMOVABLE, &mapping->flags); + } +=20 +static inline bool mapping_stable_writes(const struct address_space *mapp= ing) +{ + return test_bit(AS_STABLE_WRITES, &mapping->flags); +} + +static inline void mapping_set_stable_writes(struct address_space *mappin= g) +{ + set_bit(AS_STABLE_WRITES, &mapping->flags); +} + +static inline void mapping_clear_stable_writes(struct address_space *mapp= ing) +{ + clear_bit(AS_STABLE_WRITES, &mapping->flags); +} + static inline gfp_t mapping_gfp_mask(struct address_space * mapping) { return mapping->gfp_mask; --Sig_/8r2oWaKZaSmteXC+67jB/fz Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVtIqQACgkQAVBC80lX 0GzjWAf/X1tCPBNu95zV0Mq9esX+qPvDhfWOLbieaYGzjpHNlL9AXomcCbRTg8GF 8AtLG8v42IHH6GkeeETor1NiGcSv/BYyEa9ibvoO48x00YSKt8rAqUQKg4nBgXVa /FNzujmiXacB+a+cgb4tyqlBYGMzadQOvR4am1UkTq249AYUw4fhphJqpQ+ggPPo L/XsayunYH1AcUD1FpHLNmx2GeRrHuOXBFK3drqkK9JXlWNRHT5LW/5VuoTPUM/G I3ueJ//hmBZGStJaSK3wE+lqmK7B1iEYjAajupkwu4XdWlDK0wUsX5KJxn2gjPp/ nhXaagOvwtGfZ1qv8sPuPf9HjmwWqA== =U7sa -----END PGP SIGNATURE----- --Sig_/8r2oWaKZaSmteXC+67jB/fz--