Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp153515rdh; Mon, 30 Oct 2023 17:42:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGj/bp2yA/vVZ4g8vIPTziuGeZ1mmLIq4zE91wsmV85rut/wkKW7uj8rE58tt0SM/2IeSWT X-Received: by 2002:a05:6808:114:b0:3b2:defb:e562 with SMTP id b20-20020a056808011400b003b2defbe562mr10826806oie.45.1698712943324; Mon, 30 Oct 2023 17:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698712943; cv=none; d=google.com; s=arc-20160816; b=e3rdC1Fu3AVjOc0aP3mGcBrfsJNIaWC7B4bJg2V/0lWCj/OC0pKovBpAVQrFiRzfY5 TqilTXWNv2aCzfafrYjAC28dSMXfDyf3KIiItNETAD7q0SM9wdSRYIEcZ0NeBhIKwIUo 7J+DyaiDwafOLe5gNDq/F8xrhre/9bl6wOO/F4skD6tbDfQbH61QuEU3sV8r7yA87BWW dz8sU5X/BUNmnJHiv+gfgFpW4c+PKBlX5zJYJLf95oKlNIfnKcbYo8nT9PacBCzfr4lz 5JiZz59nadUsc7U5x3blo2pw3FKh7bEI5l3c32XAQOHCCNWZe15aQBSFlJexpygSpEx4 3gwA== 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=a4Hxqx+0CTVyusPauQe/h3KF1jX5MmLk6nH3Dh6Ja8A=; fh=UzyU1SPP0P1r94bc0Yj7oWP/crrMFbYRgHonCPkzFW0=; b=tKxRRHtdrHN5Y3YkjLn4J8892MZS9sfVp+bW6yCVlDjFmT3JAbHBx2EXyu3tvC1DS3 y+RcC0D9le4Txijde1fSiAHlMqvBMXVU4SF15LUfxeuxDOuI+JwEKufGbzfoavG4BXIR mo8KKTPCoDCywib6FH1HHobznNODE25oT92cGrSI2RGshTUjJs7D7hKYTsHsx9hEaUAY 2rKwgRZHZsIb4fioHzqz3mrS4DeCFSnSq/XCHAvWGRsvikMLHHBK9/nc1y7X+zvTNHeC XiheRnRoxt9o0uM2HC+OMtRadkHZx1vG08tjMb7FFhUnWn7Dk4sWm8LQGJOv92eLiV7e OieQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=twHymCGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d13-20020a056a0010cd00b006b2b53de986si173490pfu.194.2023.10.30.17.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 17:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=twHymCGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 3CE13805F3DC; Mon, 30 Oct 2023 17:42:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236804AbjJaAmL (ORCPT + 99 others); Mon, 30 Oct 2023 20:42:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjJaAmK (ORCPT ); Mon, 30 Oct 2023 20:42:10 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 886EB98; Mon, 30 Oct 2023 17:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1698712919; bh=a4Hxqx+0CTVyusPauQe/h3KF1jX5MmLk6nH3Dh6Ja8A=; h=Date:From:To:Cc:Subject:From; b=twHymCGcm4HUckrQ+IjBCqJXNgzCc9UVUuJWYoBwmQtk0ggHc/EpwQyn6ALsrMvEs W7uaI4ewueSJkQY24bPDqi1Wm2TOJaOTpxdj+H7pXUZs3Fx03pacs+dtWw/AH0OJsd ITIZp1VITPWUv6RMMilGAdyOeCIAy0ABMMOpPvi1ihha5sqIRR+iYrodXJfkWmUvK7 z9lmX5K48R1JiMViecxVmzPqjMepMerWPtzvQxNb+VAFR6kQZtB+jGG8HbGADRUrow TQ+Vv684RB38utxHejQ8UKJ97ofQYXkuu2SdL+k8KBHJ93uDtaqMlXBAsACGuhaMDw ynCsbTT4enIsQ== 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 4SKBD734mLz4wd1; Tue, 31 Oct 2023 11:41:59 +1100 (AEDT) Date: Tue, 31 Oct 2023 11:41:58 +1100 From: Stephen Rothwell To: "Darrick J. Wong" , David Chinner Cc: , Christian Brauner , Dave Chinner , Jeff Layton , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the xfs tree with Linus' tree Message-ID: <20231031114158.548ff433@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/KxSBFLBldxlh5yMp=MRA1aO"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.8 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 17:42:20 -0700 (PDT) --Sig_/KxSBFLBldxlh5yMp=MRA1aO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the xfs tree got conflicts in: fs/xfs/libxfs/xfs_rtbitmap.c fs/xfs/xfs_rtalloc.c between commit: 75d1e312bbbd ("xfs: convert to new timestamp accessors") from Linus' tree and commit: 41f33d82cfd3 ("xfs: consolidate realtime allocation arguments") a684c538bc14 ("xfs: convert xfs_extlen_t to xfs_rtxlen_t in the rt alloca= tor") 2d5f216b77e3 ("xfs: convert rt extent numbers to xfs_rtxnum_t") from the xfs 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/xfs/libxfs/xfs_rtbitmap.c index 396648acb5be,b332ab490a48..000000000000 --- a/fs/xfs/libxfs/xfs_rtbitmap.c +++ b/fs/xfs/libxfs/xfs_rtbitmap.c @@@ -960,19 -931,18 +931,19 @@@ xfs_rtcheck_alloc_range * Free an extent in the realtime subvolume. Length is expressed in * realtime extents, as is the block number. */ - int /* error */ + int xfs_rtfree_extent( - xfs_trans_t *tp, /* transaction pointer */ - xfs_rtblock_t bno, /* starting block number to free */ - xfs_extlen_t len) /* length of extent freed */ + struct xfs_trans *tp, /* transaction pointer */ + xfs_rtxnum_t start, /* starting rtext number to free */ + xfs_rtxlen_t len) /* length of extent freed */ { - int error; /* error value */ - xfs_mount_t *mp; /* file system mount structure */ - xfs_fsblock_t sb; /* summary file block number */ - struct xfs_buf *sumbp =3D NULL; /* summary file block buffer */ - struct timespec64 atime; -=20 - mp =3D tp->t_mountp; + struct xfs_mount *mp =3D tp->t_mountp; + struct xfs_rtalloc_args args =3D { + .mp =3D mp, + .tp =3D tp, + }; + int error; ++ struct timespec64 atime; =20 ASSERT(mp->m_rbmip->i_itemp !=3D NULL); ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL)); @@@ -1000,13 -970,46 +971,49 @@@ mp->m_sb.sb_rextents) { if (!(mp->m_rbmip->i_diflags & XFS_DIFLAG_NEWRTBM)) mp->m_rbmip->i_diflags |=3D XFS_DIFLAG_NEWRTBM; - *(uint64_t *)&VFS_I(mp->m_rbmip)->i_atime =3D 0; + + atime =3D inode_get_atime(VFS_I(mp->m_rbmip)); + *((uint64_t *)&atime) =3D 0; + inode_set_atime_to_ts(VFS_I(mp->m_rbmip), atime); xfs_trans_log_inode(tp, mp->m_rbmip, XFS_ILOG_CORE); } - return 0; + error =3D 0; + out: + xfs_rtbuf_cache_relse(&args); + return error; + } +=20 + /* + * Free some blocks in the realtime subvolume. rtbno and rtlen are in un= its of + * rt blocks, not rt extents; must be aligned to the rt extent size; and = rtlen + * cannot exceed XFS_MAX_BMBT_EXTLEN. + */ + int + xfs_rtfree_blocks( + struct xfs_trans *tp, + xfs_fsblock_t rtbno, + xfs_filblks_t rtlen) + { + struct xfs_mount *mp =3D tp->t_mountp; + xfs_rtxnum_t start; + xfs_filblks_t len; + xfs_extlen_t mod; +=20 + ASSERT(rtlen <=3D XFS_MAX_BMBT_EXTLEN); +=20 + len =3D xfs_rtb_to_rtxrem(mp, rtlen, &mod); + if (mod) { + ASSERT(mod =3D=3D 0); + return -EIO; + } +=20 + start =3D xfs_rtb_to_rtxrem(mp, rtbno, &mod); + if (mod) { + ASSERT(mod =3D=3D 0); + return -EIO; + } +=20 + return xfs_rtfree_extent(tp, start, len); } =20 /* Find all the free records within a given range. */ diff --cc fs/xfs/xfs_rtalloc.c index 2e1a4e5cd03d,ba66442910b1..000000000000 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@@ -1420,16 -1414,16 +1414,16 @@@ xfs_rtunmount_inodes */ int /* error */ xfs_rtpick_extent( - xfs_mount_t *mp, /* file system mount point */ - xfs_trans_t *tp, /* transaction pointer */ - xfs_rtxlen_t len, /* allocation length (rtextents) */ - xfs_rtxnum_t *pick) /* result rt extent */ -{ - xfs_rtxnum_t b; /* result rtext */ - int log2; /* log of sequence number */ - uint64_t resid; /* residual after log removed */ - uint64_t seq; /* sequence number of file creation */ - uint64_t *seqp; /* pointer to seqno in inode */ + xfs_mount_t *mp, /* file system mount point */ + xfs_trans_t *tp, /* transaction pointer */ - xfs_extlen_t len, /* allocation length (rtextents) */ - xfs_rtblock_t *pick) /* result rt extent */ ++ xfs_rtxlen_t len, /* allocation length (rtextents) */ ++ xfs_rtxnum_t *pick) /* result rt extent */ + { - xfs_rtblock_t b; /* result block */ ++ xfs_rtxnum_t b; /* result rtext */ + int log2; /* log of sequence number */ + uint64_t resid; /* residual after log removed */ + uint64_t seq; /* sequence number of file creation */ + struct timespec64 ts; /* temporary timespec64 storage */ =20 ASSERT(xfs_isilocked(mp->m_rbmip, XFS_ILOCK_EXCL)); =20 --Sig_/KxSBFLBldxlh5yMp=MRA1aO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVATVYACgkQAVBC80lX 0GwwXAf9GxpP7kHw4pI0RM0rQWsKC3UddPkaZgaLMyxHY0gsDvBVza7t7Lx4/YJr 5M66pkoyVJiOV5WkLk9DXvW7KS4fOulA9QfwTXq5Nr5oaQZNTAQuf4QRsLiYUX+v JqgNdyYx5sepcFB5m+IOKjzpjcAuGOkt6VcEbQtw2e2Xo7QOIEWrdV0Ry6HWlrec kknwoHH0355rjZqivbELtPConczrIY1doyKnHitP0YSPSbeJ9VCxenMFfkeLwLkQ PTNUUwAhqt0BcdFO8fynSdQsoWt8gENTA/tNMI7AyKQ9J6Rqo8TKNhHsESZvLeno qdeK7+Yp9NePWDzwtfraz+mIz6GXsw== =fHMO -----END PGP SIGNATURE----- --Sig_/KxSBFLBldxlh5yMp=MRA1aO--