From: "Darrick J. Wong" <djwong@kernel.org>
To: Dave Chinner <david@fromorbit.com>
Cc: hch@lst.de, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 11/24] xfs: create incore realtime group structures
Date: Mon, 26 Aug 2024 12:14:04 -0700 [thread overview]
Message-ID: <20240826191404.GC865349@frogsfrogsfrogs> (raw)
In-Reply-To: <ZsvEmInHRA6GVuz3@dread.disaster.area>
On Mon, Aug 26, 2024 at 09:56:08AM +1000, Dave Chinner wrote:
> On Thu, Aug 22, 2024 at 05:17:31PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> >
> > Create an incore object that will contain information about a realtime
> > allocation group. This will eventually enable us to shard the realtime
> > section in a similar manner to how we shard the data section, but for
> > now just a single object for the entire RT subvolume is created.
> >
> > Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> > ---
> > fs/xfs/Makefile | 1
> > fs/xfs/libxfs/xfs_format.h | 3 +
> > fs/xfs/libxfs/xfs_rtgroup.c | 196 ++++++++++++++++++++++++++++++++++++++++
> > fs/xfs/libxfs/xfs_rtgroup.h | 212 +++++++++++++++++++++++++++++++++++++++++++
> > fs/xfs/libxfs/xfs_sb.c | 7 +
> > fs/xfs/libxfs/xfs_types.h | 4 +
> > fs/xfs/xfs_log_recover.c | 20 ++++
> > fs/xfs/xfs_mount.c | 16 +++
> > fs/xfs/xfs_mount.h | 14 +++
> > fs/xfs/xfs_rtalloc.c | 6 +
> > fs/xfs/xfs_super.c | 1
> > fs/xfs/xfs_trace.c | 1
> > fs/xfs/xfs_trace.h | 38 ++++++++
> > 13 files changed, 517 insertions(+), 2 deletions(-)
> > create mode 100644 fs/xfs/libxfs/xfs_rtgroup.c
> > create mode 100644 fs/xfs/libxfs/xfs_rtgroup.h
>
> Ok, how is the global address space for real time extents laid out
> across rt groups? i.e. is it sparse similar to how fsbnos and inode
> numbers are created for the data device like so?
>
> fsbno = (agno << agblklog) | agbno
>
> Or is it something different? I can't find that defined anywhere in
> this patch, so I can't determine if the unit conversion code and
> validation is correct or not...
They're not sparse like fsbnos on the data device, they're laid end to
end. IOWs, it's a straight linear translation. If you have an rtgroup
that is 50 blocks long, then rtgroup 1 starts at (50 * blocksize).
This patch, FWIW, refactors the existing rt code so that a !rtgroups
filesystem is represented by one large "group", with xfs_rtxnum_t now
indexing rt extents within a group. Probably it should be renamed to
xfs_rgxnum_t.
Note that we haven't defined the rtgroup ondisk format yet, so I'll go
amend that patch to spell out the ondisk format of the brave new world.
> > diff --git a/fs/xfs/Makefile b/fs/xfs/Makefile
> > index 4d8ca08cdd0ec..388b5cef48ca5 100644
> > --- a/fs/xfs/Makefile
> > +++ b/fs/xfs/Makefile
> > @@ -60,6 +60,7 @@ xfs-y += $(addprefix libxfs/, \
> > # xfs_rtbitmap is shared with libxfs
> > xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
> > xfs_rtbitmap.o \
> > + xfs_rtgroup.o \
> > )
> >
> > # highlevel code
> > diff --git a/fs/xfs/libxfs/xfs_format.h b/fs/xfs/libxfs/xfs_format.h
> > index 16a7bc02aa5f5..fa5cfc8265d92 100644
> > --- a/fs/xfs/libxfs/xfs_format.h
> > +++ b/fs/xfs/libxfs/xfs_format.h
> > @@ -176,6 +176,9 @@ typedef struct xfs_sb {
> >
> > xfs_ino_t sb_metadirino; /* metadata directory tree root */
> >
> > + xfs_rgnumber_t sb_rgcount; /* number of realtime groups */
> > + xfs_rtxlen_t sb_rgextents; /* size of a realtime group in rtx */
>
> So min/max rtgroup size is defined by the sb_rextsize field? What
> redundant metadata do we end up with that allows us to validate
> the sb_rextsize field is still valid w.r.t. rtgroups geometry?
>
> Also, rtgroup lengths are defined by "rtx counts", but the
> definitions in the xfs_mount later on are "m_rtblklog" and
> "m_rgblocks" and we use xfs_rgblock_t and rgbno all over the place.
>
> Just from the context of this patch, it is somewhat confusing trying
> to work out what the difference is...
>
>
> > /* must be padded to 64 bit alignment */
> > } xfs_sb_t;
> >
> > diff --git a/fs/xfs/libxfs/xfs_rtgroup.c b/fs/xfs/libxfs/xfs_rtgroup.c
> > new file mode 100644
> > index 0000000000000..2bad1ecb811eb
> > --- /dev/null
> > +++ b/fs/xfs/libxfs/xfs_rtgroup.c
> > @@ -0,0 +1,196 @@
> > +// SPDX-License-Identifier: GPL-2.0-or-later
> > +/*
> > + * Copyright (c) 2022-2024 Oracle. All Rights Reserved.
> > + * Author: Darrick J. Wong <djwong@kernel.org>
> > + */
> > +#include "xfs.h"
> > +#include "xfs_fs.h"
> > +#include "xfs_shared.h"
> > +#include "xfs_format.h"
> > +#include "xfs_trans_resv.h"
> > +#include "xfs_bit.h"
> > +#include "xfs_sb.h"
> > +#include "xfs_mount.h"
> > +#include "xfs_btree.h"
> > +#include "xfs_alloc_btree.h"
> > +#include "xfs_rmap_btree.h"
> > +#include "xfs_alloc.h"
> > +#include "xfs_ialloc.h"
> > +#include "xfs_rmap.h"
> > +#include "xfs_ag.h"
> > +#include "xfs_ag_resv.h"
> > +#include "xfs_health.h"
> > +#include "xfs_error.h"
> > +#include "xfs_bmap.h"
> > +#include "xfs_defer.h"
> > +#include "xfs_log_format.h"
> > +#include "xfs_trans.h"
> > +#include "xfs_trace.h"
> > +#include "xfs_inode.h"
> > +#include "xfs_icache.h"
> > +#include "xfs_rtgroup.h"
> > +#include "xfs_rtbitmap.h"
> > +
> > +/*
> > + * Passive reference counting access wrappers to the rtgroup structures. If
> > + * the rtgroup structure is to be freed, the freeing code is responsible for
> > + * cleaning up objects with passive references before freeing the structure.
> > + */
> > +struct xfs_rtgroup *
> > +xfs_rtgroup_get(
> > + struct xfs_mount *mp,
> > + xfs_rgnumber_t rgno)
> > +{
> > + struct xfs_rtgroup *rtg;
> > +
> > + rcu_read_lock();
> > + rtg = xa_load(&mp->m_rtgroups, rgno);
> > + if (rtg) {
> > + trace_xfs_rtgroup_get(rtg, _RET_IP_);
> > + ASSERT(atomic_read(&rtg->rtg_ref) >= 0);
> > + atomic_inc(&rtg->rtg_ref);
> > + }
> > + rcu_read_unlock();
> > + return rtg;
> > +}
> > +
> > +/* Get a passive reference to the given rtgroup. */
> > +struct xfs_rtgroup *
> > +xfs_rtgroup_hold(
> > + struct xfs_rtgroup *rtg)
> > +{
> > + ASSERT(atomic_read(&rtg->rtg_ref) > 0 ||
> > + atomic_read(&rtg->rtg_active_ref) > 0);
> > +
> > + trace_xfs_rtgroup_hold(rtg, _RET_IP_);
> > + atomic_inc(&rtg->rtg_ref);
> > + return rtg;
> > +}
> > +
> > +void
> > +xfs_rtgroup_put(
> > + struct xfs_rtgroup *rtg)
> > +{
> > + trace_xfs_rtgroup_put(rtg, _RET_IP_);
> > + ASSERT(atomic_read(&rtg->rtg_ref) > 0);
> > + atomic_dec(&rtg->rtg_ref);
> > +}
> > +
> > +/*
> > + * Active references for rtgroup structures. This is for short term access to
> > + * the rtgroup structures for walking trees or accessing state. If an rtgroup
> > + * is being shrunk or is offline, then this will fail to find that group and
> > + * return NULL instead.
> > + */
> > +struct xfs_rtgroup *
> > +xfs_rtgroup_grab(
> > + struct xfs_mount *mp,
> > + xfs_agnumber_t agno)
> > +{
> > + struct xfs_rtgroup *rtg;
> > +
> > + rcu_read_lock();
> > + rtg = xa_load(&mp->m_rtgroups, agno);
> > + if (rtg) {
> > + trace_xfs_rtgroup_grab(rtg, _RET_IP_);
> > + if (!atomic_inc_not_zero(&rtg->rtg_active_ref))
> > + rtg = NULL;
> > + }
> > + rcu_read_unlock();
> > + return rtg;
> > +}
> > +
> > +void
> > +xfs_rtgroup_rele(
> > + struct xfs_rtgroup *rtg)
> > +{
> > + trace_xfs_rtgroup_rele(rtg, _RET_IP_);
> > + if (atomic_dec_and_test(&rtg->rtg_active_ref))
> > + wake_up(&rtg->rtg_active_wq);
> > +}
>
> This is all duplicates of the xfs_perag code. Can you put together a
> patchset to abstract this into a "xfs_group" and embed them in both
> the perag and and rtgroup structures?
>
> That way we only need one set of lookup and iterator infrastructure,
> and it will work for both data and rt groups...
How will that work with perags still using the radix tree and rtgroups
using the xarray? Yes, we should move the perags to use the xarray too
(and indeed hch already has a series on list to do that) but here's
really not the time to do that because I don't want to frontload a bunch
more core changes onto this already huge patchset.
> > +
> > +/* Compute the number of rt extents in this realtime group. */
> > +xfs_rtxnum_t
> > +xfs_rtgroup_extents(
> + struct xfs_mount *mp,
> > + xfs_rgnumber_t rgno)
> > +{
> > + xfs_rgnumber_t rgcount = mp->m_sb.sb_rgcount;
> > +
> > + ASSERT(rgno < rgcount);
> > + if (rgno == rgcount - 1)
> > + return mp->m_sb.sb_rextents -
> > + ((xfs_rtxnum_t)rgno * mp->m_sb.sb_rgextents);
>
> Urk. So this relies on a non-rtgroup filesystem doing a
> multiplication by zero of a field that the on-disk format does not
> understand to get the right result. I think this is a copying a bad
> pattern we've been slowly trying to remove from the normal
> allocation group code.
>
> > +
> > + ASSERT(xfs_has_rtgroups(mp));
> > + return mp->m_sb.sb_rgextents;
> > +}
>
> We already embed the length of the rtgroup in the rtgroup structure.
> THis should be looking up the rtgroup (or being passed the rtgroup
> the caller already has) and doing the right thing. i.e.
>
> if (!rtg || !xfs_has_rtgroups(rtg->rtg_mount))
> return mp->m_sb.sb_rextents;
> return rtg->rtg_extents;
xfs_rtgroup_extents is the function that we use to set rtg->rtg_extents.
> > diff --git a/fs/xfs/libxfs/xfs_rtgroup.h b/fs/xfs/libxfs/xfs_rtgroup.h
> > new file mode 100644
> > index 0000000000000..2c09ecfc50328
> > --- /dev/null
> > +++ b/fs/xfs/libxfs/xfs_rtgroup.h
> > @@ -0,0 +1,212 @@
> > +/* SPDX-License-Identifier: GPL-2.0-or-later */
> > +/*
> > + * Copyright (c) 2022-2024 Oracle. All Rights Reserved.
> > + * Author: Darrick J. Wong <djwong@kernel.org>
> > + */
> > +#ifndef __LIBXFS_RTGROUP_H
> > +#define __LIBXFS_RTGROUP_H 1
> > +
> > +struct xfs_mount;
> > +struct xfs_trans;
> > +
> > +/*
> > + * Realtime group incore structure, similar to the per-AG structure.
> > + */
> > +struct xfs_rtgroup {
> > + struct xfs_mount *rtg_mount;
> > + xfs_rgnumber_t rtg_rgno;
> > + atomic_t rtg_ref; /* passive reference count */
> > + atomic_t rtg_active_ref; /* active reference count */
> > + wait_queue_head_t rtg_active_wq;/* woken active_ref falls to zero */
>
> Yeah, that's all common with xfs_perag....
>
> ....
> > +/*
> > + * rt group iteration APIs
> > + */
> > +static inline struct xfs_rtgroup *
> > +xfs_rtgroup_next(
> > + struct xfs_rtgroup *rtg,
> > + xfs_rgnumber_t *rgno,
> > + xfs_rgnumber_t end_rgno)
> > +{
> > + struct xfs_mount *mp = rtg->rtg_mount;
> > +
> > + *rgno = rtg->rtg_rgno + 1;
> > + xfs_rtgroup_rele(rtg);
> > + if (*rgno > end_rgno)
> > + return NULL;
> > + return xfs_rtgroup_grab(mp, *rgno);
> > +}
> > +
> > +#define for_each_rtgroup_range(mp, rgno, end_rgno, rtg) \
> > + for ((rtg) = xfs_rtgroup_grab((mp), (rgno)); \
> > + (rtg) != NULL; \
> > + (rtg) = xfs_rtgroup_next((rtg), &(rgno), (end_rgno)))
> > +
> > +#define for_each_rtgroup_from(mp, rgno, rtg) \
> > + for_each_rtgroup_range((mp), (rgno), (mp)->m_sb.sb_rgcount - 1, (rtg))
> > +
> > +
> > +#define for_each_rtgroup(mp, rgno, rtg) \
> > + (rgno) = 0; \
> > + for_each_rtgroup_from((mp), (rgno), (rtg))
>
> Yup, that's all common with xfs_perag iteration, too. Can you put
> together a patchset to unify these, please?
Here's the first part of that, to convert perags to xarrays...
https://lore.kernel.org/linux-xfs/20240821063901.650776-1-hch@lst.de/
> > +static inline bool
> > +xfs_verify_rgbno(
> > + struct xfs_rtgroup *rtg,
> > + xfs_rgblock_t rgbno)
>
> Ok, what's the difference between and xfs_rgblock_t and a "rtx"?
>
> OH.... Then penny just dropped - it's another "single letter
> difference that's really, really hard to spot" problem. You've
> defined "xfs_r*g*block_t" for the like a a*g*bno, but we have
> xfs_r*t*block_t for the global 64bit block number instead of a
> xfs_fsbno_t.
>
> We just had a bug caused by exactly this sort of confusion with a
> patch that mixed xfs_[f]inobt changes together and one of the
> conversions was incorrect. Nobody spotted the single incorrect
> letter in the bigger patch, and I can see -exactly- the same sort of
> confusion happening with rtblock vs rgblock causing implicit 32/64
> bit integer promotion bugs...
>
> > +{
> > + struct xfs_mount *mp = rtg->rtg_mount;
> > +
> > + if (rgbno >= rtg->rtg_extents * mp->m_sb.sb_rextsize)
> > + return false;
>
> Why isn't the max valid "rgbno" stored in the rtgroup instead of
> having to multiply the extent count by extent size every time we
> have to verify a rgbno? (i.e. same as pag->block_count).
>
> We know from the agbno verification this will be a -very- hot path,
> and so precalculating all the constants and storing them in the rtg
> should be done right from the start here.
>
> > + if (xfs_has_rtsb(mp) && rtg->rtg_rgno == 0 &&
> > + rgbno < mp->m_sb.sb_rextsize)
> > + return false;
>
> Same here - this value is stored in pag->min_block...
>
> > + return true;
> > +}
>
> And then, if we put the max_bno and min_bno in the generic
> "xfs_group" structure, we suddenly have a generic "group bno"
> verification mechanism that is independent of whether the group
>
> static inline bool
> xfs_verify_gbno(
> struct xfs_group *g,
> xfs_gblock_t gbno)
> {
> struct xfs_mount *mp = g->g_mount;
>
> if (gbno >= g->block_count)
> return false;
> if (gbno < g->min_block)
> return false;
> return true;
> }
>
> And the rest of these functions fall out the same way....
>
>
> > +static inline xfs_rtblock_t
> > +xfs_rgno_start_rtb(
> > + struct xfs_mount *mp,
> > + xfs_rgnumber_t rgno)
> > +{
> > + if (mp->m_rgblklog >= 0)
> > + return ((xfs_rtblock_t)rgno << mp->m_rgblklog);
> > + return ((xfs_rtblock_t)rgno * mp->m_rgblocks);
> > +}
>
> Where does mp->m_rgblklog come from? That wasn't added to the
> on-disk superblock structure and it is always initialised to zero
> in this patch.
>
> When will m_rgblklog be zero and when will it be non-zero? If it's
As I mentioned before, this patch merely ports non-rtg filesystems to
use the rtgroup structure. m_rgblklog will be set to nonzero values
when we get to defining the ondisk rtgroup structure.
But, to cut ahead here, m_rgblklog will be set to a non-negative value
if the rtgroup size (in blocks) is a power of two. Then these unit
conversion functions can use shifts instead of expensive multiplication
and divisions. The same goes for rt extent to {fs,rt}block conversions.
> only going to be zero for existing non-rtg realtime systems,
> then this code makes little sense (again, relying on multiplication
> by zero to get the right result). If it's not always used for
> rtg enabled filesytsems, then the reason for that has not been
> explained and I can't work out why this would ever need to be done.
https://lore.kernel.org/linux-xfs/172437088534.60592.14072619855969226822.stgit@frogsfrogsfrogs/
>
> > +static inline xfs_rtblock_t
> > +xfs_rgbno_to_rtb(
> > + struct xfs_mount *mp,
> > + xfs_rgnumber_t rgno,
> > + xfs_rgblock_t rgbno)
> > +{
> > + return xfs_rgno_start_rtb(mp, rgno) + rgbno;
> > +}
> > +
> > +static inline xfs_rgnumber_t
> > +xfs_rtb_to_rgno(
> > + struct xfs_mount *mp,
> > + xfs_rtblock_t rtbno)
> > +{
> > + if (!xfs_has_rtgroups(mp))
> > + return 0;
> > +
> > + if (mp->m_rgblklog >= 0)
> > + return rtbno >> mp->m_rgblklog;
> > +
> > + return div_u64(rtbno, mp->m_rgblocks);
> > +}
>
> Ah, now I'm really confused, because m_rgblklog is completely
> bypassed for legacy rt filesystems.
>
> And I just realised, this "if (mp->m_rgblklog >= 0)" implies that
> m_rgblklog can have negative values and there's no comments anywhere
> about why that can happen and what would trigger it.
-1 is the magic value for "the rtgroup size is not a power of two, so
you have to use slow integer division and multiplication".
> We validate sb_agblklog during the superblock verifier, and so once
> the filesystem is mounted we never, ever need to check whether
> sb_agblklog is in range. Why is the rtblklog being handled so
> differently here?
This all could be documented better across the patches. Originally the
incore and ondisk patches were adjacent and it was at least somewhat
easier to figure these things out, but hch really wanted to shard the
rtbitmaps, so now the patchset has grown even larger and harder to
understand if you only read one patch at a time.
> > +
> > +static inline uint64_t
> > +__xfs_rtb_to_rgbno(
> > + struct xfs_mount *mp,
> > + xfs_rtblock_t rtbno)
> > +{
> > + uint32_t rem;
> > +
> > + if (!xfs_has_rtgroups(mp))
> > + return rtbno;
> > +
> > + if (mp->m_rgblklog >= 0)
> > + return rtbno & mp->m_rgblkmask;
> > +
> > + div_u64_rem(rtbno, mp->m_rgblocks, &rem);
> > + return rem;
> > +}
>
> Why is this function returning a uint64_t - a xfs_rgblock_t is only
> a 32 bit type...
group 0 on a !rtg filesystem can be 64-bits in block/rt count. This is
a /very/ annoying pain point -- if you actually created such a
filesystem it actually would never work because the rtsummary file would
be created undersized due to an integer overflow, but the verifiers
never checked any of that, and due to the same underflow the rtallocator
would search the wrong places and (eventually) fall back to a dumb
linear scan.
Soooooo this is an obnoxious usecase (broken large !rtg filesystems)
that we can't just drop, though I'm pretty sure there aren't any systems
in the wild.
> > +
> > +static inline xfs_rgblock_t
> > +xfs_rtb_to_rgbno(
> > + struct xfs_mount *mp,
> > + xfs_rtblock_t rtbno)
> > +{
> > + return __xfs_rtb_to_rgbno(mp, rtbno);
> > +}
> > +
> > +static inline xfs_daddr_t
> > +xfs_rtb_to_daddr(
> > + struct xfs_mount *mp,
> > + xfs_rtblock_t rtbno)
> > +{
> > + return rtbno << mp->m_blkbb_log;
> > +}
> > +
> > +static inline xfs_rtblock_t
> > +xfs_daddr_to_rtb(
> > + struct xfs_mount *mp,
> > + xfs_daddr_t daddr)
> > +{
> > + return daddr >> mp->m_blkbb_log;
> > +}
>
> Ah. This code doesn't sparsify the xfs_rtblock_t address space for
> rtgroups. xfs_rtblock_t is still direct physical encoding of the
> location on disk.
Yes.
> I really think that needs to be changed to match how xfs_fsbno_t is
> a sparse encoding before these changes get merged. It shouldn't
> affect any of the other code in the patch set - the existing rt code
> has a rtgno of 0, so it will always be a direct physical encoding
> even when using a sparse xfs_rtblock_t address space.
>
> All that moving to a sparse encoding means is that the addresses
> stored in the BMBT are logical addresses rather than physical
> addresses. It should not affect any of the other code, just what
> ends up stored on disk for global 64-bit rt extent addresses...
>
> In doing this, I think we can greatly simply all this group
> management stuff as most of the verification, type conversion and
> iteration infrastructure can then be shared between the exist perag
> and the new rtg infrastructure....
>
> > diff --git a/fs/xfs/libxfs/xfs_types.h b/fs/xfs/libxfs/xfs_types.h
> > index a8cd44d03ef64..1ce4b9eb16f47 100644
> > --- a/fs/xfs/libxfs/xfs_types.h
> > +++ b/fs/xfs/libxfs/xfs_types.h
> > @@ -9,10 +9,12 @@
> > typedef uint32_t prid_t; /* project ID */
> >
> > typedef uint32_t xfs_agblock_t; /* blockno in alloc. group */
> > +typedef uint32_t xfs_rgblock_t; /* blockno in realtime group */
>
> Is that right? The rtg length is 2^32 * rtextsize, and rtextsize can
> be 2^20 bytes:
>
> #define XFS_MAX_RTEXTSIZE (1024 * 1024 * 1024)
No, the maximum rtgroup length is 2^32-1 blocks.
> Hence for a 4kB fsbno filesystem, the actual maximum size of an rtg
> in filesystem blocks far exceeds what we can address with a 32 bit
> variable.
>
> If xfs_rgblock_t is actually indexing multi-fsbno rtextents, then it
> is an extent number index, not a "block" index. An extent number
> index won't overflow 32 bits (because the rtg has a max of 2^32 - 1
> rtextents)
>
> IOWs, shouldn't this be named soemthing like:
>
> typedef uint32_t xfs_rgext_t; /* extent number in realtime group */
and again, we can't do that because we emulate !rtg filesystems with a
single "rtgroup" that can be more than 2^32 rtx long.
> > typedef uint32_t xfs_agino_t; /* inode # within allocation grp */
> > typedef uint32_t xfs_extlen_t; /* extent length in blocks */
> > typedef uint32_t xfs_rtxlen_t; /* file extent length in rtextents */
> > typedef uint32_t xfs_agnumber_t; /* allocation group number */
> > +typedef uint32_t xfs_rgnumber_t; /* realtime group number */
> > typedef uint64_t xfs_extnum_t; /* # of extents in a file */
> > typedef uint32_t xfs_aextnum_t; /* # extents in an attribute fork */
> > typedef int64_t xfs_fsize_t; /* bytes in a file */
> > @@ -53,7 +55,9 @@ typedef void * xfs_failaddr_t;
> > #define NULLFILEOFF ((xfs_fileoff_t)-1)
> >
> > #define NULLAGBLOCK ((xfs_agblock_t)-1)
> > +#define NULLRGBLOCK ((xfs_rgblock_t)-1)
> > #define NULLAGNUMBER ((xfs_agnumber_t)-1)
> > +#define NULLRGNUMBER ((xfs_rgnumber_t)-1)
>
> What's the maximum valid rtg number? We're not ever going to be
> supporting 2^32 - 2 rtgs, so what is a realistic maximum we can cap
> this at and validate it at?
/me shrugs -- the smallest AG size on the data device is 16M, which
technically speaking means that one /could/ format 2^(63-24) groups,
or order 39.
Realistically with the maximum rtgroup size of 2^31 blocks, we probably
only need 2^(63 - (31 + 10)) = 2^22 rtgroups max on a 1k fsblock fs.
> > #define NULLCOMMITLSN ((xfs_lsn_t)-1)
> >
> > diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
> > index 4423dd344239b..c627cde3bb1e0 100644
> > --- a/fs/xfs/xfs_log_recover.c
> > +++ b/fs/xfs/xfs_log_recover.c
> > @@ -28,6 +28,7 @@
> > #include "xfs_ag.h"
> > #include "xfs_quota.h"
> > #include "xfs_reflink.h"
> > +#include "xfs_rtgroup.h"
> >
> > #define BLK_AVG(blk1, blk2) ((blk1+blk2) >> 1)
> >
> > @@ -3346,6 +3347,7 @@ xlog_do_recover(
> > struct xfs_mount *mp = log->l_mp;
> > struct xfs_buf *bp = mp->m_sb_bp;
> > struct xfs_sb *sbp = &mp->m_sb;
> > + xfs_rgnumber_t old_rgcount = sbp->sb_rgcount;
> > int error;
> >
> > trace_xfs_log_recover(log, head_blk, tail_blk);
> > @@ -3399,6 +3401,24 @@ xlog_do_recover(
> > xfs_warn(mp, "Failed post-recovery per-ag init: %d", error);
> > return error;
> > }
> > +
> > + if (sbp->sb_rgcount < old_rgcount) {
> > + xfs_warn(mp, "rgcount shrink not supported");
> > + return -EINVAL;
> > + }
> > + if (sbp->sb_rgcount > old_rgcount) {
> > + xfs_rgnumber_t rgno;
> > +
> > + for (rgno = old_rgcount; rgno < sbp->sb_rgcount; rgno++) {
> > + error = xfs_rtgroup_alloc(mp, rgno);
> > + if (error) {
> > + xfs_warn(mp,
> > + "Failed post-recovery rtgroup init: %d",
> > + error);
> > + return error;
> > + }
> > + }
> > + }
>
> Please factor this out into a separate function with all the other
> rtgroup init/teardown code. That means we don't have to care about
> how rtgrowfs functions in recovery code, similar to the
> xfs_initialize_perag() already in this function for handling
> recovery of data device growing...
>
> > mp->m_alloc_set_aside = xfs_alloc_set_aside(mp);
> >
> > /* Normal transactions can now occur */
> > diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
> > index b0ea88acdb618..e1e849101cdd4 100644
> > --- a/fs/xfs/xfs_mount.c
> > +++ b/fs/xfs/xfs_mount.c
> > @@ -36,6 +36,7 @@
> > #include "xfs_ag.h"
> > #include "xfs_rtbitmap.h"
> > #include "xfs_metafile.h"
> > +#include "xfs_rtgroup.h"
> > #include "scrub/stats.h"
> >
> > static DEFINE_MUTEX(xfs_uuid_table_mutex);
> > @@ -664,6 +665,7 @@ xfs_mountfs(
> > struct xfs_ino_geometry *igeo = M_IGEO(mp);
> > uint quotamount = 0;
> > uint quotaflags = 0;
> > + xfs_rgnumber_t rgno;
> > int error = 0;
> >
> > xfs_sb_mount_common(mp, sbp);
> > @@ -830,10 +832,18 @@ xfs_mountfs(
> > goto out_free_dir;
> > }
> >
> > + for (rgno = 0; rgno < mp->m_sb.sb_rgcount; rgno++) {
> > + error = xfs_rtgroup_alloc(mp, rgno);
> > + if (error) {
> > + xfs_warn(mp, "Failed rtgroup init: %d", error);
> > + goto out_free_rtgroup;
> > + }
> > + }
>
> Same - factor this to a xfs_rtgroup_init() function located with the
> rest of the rtgroup infrastructure...
>
> > +
> > if (XFS_IS_CORRUPT(mp, !sbp->sb_logblocks)) {
> > xfs_warn(mp, "no log defined");
> > error = -EFSCORRUPTED;
> > - goto out_free_perag;
> > + goto out_free_rtgroup;
> > }
> >
> > error = xfs_inodegc_register_shrinker(mp);
> > @@ -1068,7 +1078,8 @@ xfs_mountfs(
> > if (mp->m_logdev_targp && mp->m_logdev_targp != mp->m_ddev_targp)
> > xfs_buftarg_drain(mp->m_logdev_targp);
> > xfs_buftarg_drain(mp->m_ddev_targp);
> > - out_free_perag:
> > + out_free_rtgroup:
> > + xfs_free_rtgroups(mp, rgno);
> > xfs_free_perag(mp);
> > out_free_dir:
> > xfs_da_unmount(mp);
> > @@ -1152,6 +1163,7 @@ xfs_unmountfs(
> > xfs_errortag_clearall(mp);
> > #endif
> > shrinker_free(mp->m_inodegc_shrinker);
> > + xfs_free_rtgroups(mp, mp->m_sb.sb_rgcount);
>
> ... like you've already for the cleanup side ;)
>
> ....
>
> > @@ -1166,6 +1169,9 @@ xfs_rtmount_inodes(
> > if (error)
> > goto out_rele_summary;
> >
> > + for_each_rtgroup(mp, rgno, rtg)
> > + rtg->rtg_extents = xfs_rtgroup_extents(mp, rtg->rtg_rgno);
> > +
>
> This also needs to be done after recovery has initialised new rtgs
> as a result fo replaying a sb growfs modification, right?
>
> Which leads to the next question: if there are thousands of rtgs,
> this requires walking every rtg at mount time, right? We know that
> walking thousands of static structures at mount time is a
> scalability issue, so can we please avoid this if at all possible?
> i.e. do demand loading of per-rtg metadata when it is first required
> (like we do with agf/agi information) rather than doing it all at
> mount time...
Sounds like a reasonable optimization patch...
--D
>
> -Dave.
> --
> Dave Chinner
> david@fromorbit.com
>
next prev parent reply other threads:[~2024-08-26 19:14 UTC|newest]
Thread overview: 270+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 23:52 [PATCHBOMB 6.12] xfs: metadata directories and realtime groups Darrick J. Wong
2024-08-22 23:56 ` [PATCHSET v4.0 01/10] xfs: various bug fixes for 6.11 Darrick J. Wong
2024-08-22 23:59 ` [PATCH 1/9] xfs: fix di_onlink checking for V1/V2 inodes Darrick J. Wong
2024-08-22 23:59 ` [PATCH 2/9] xfs: fix folio dirtying for XFILE_ALLOC callers Darrick J. Wong
2024-08-22 23:59 ` [PATCH 3/9] xfs: xfs_finobt_count_blocks() walks the wrong btree Darrick J. Wong
2024-08-22 23:59 ` [PATCH 4/9] xfs: don't bother reporting blocks trimmed via FITRIM Darrick J. Wong
2024-08-23 0:00 ` [PATCH 5/9] xfs: Fix the owner setting issue for rmap query in xfs fsmap Darrick J. Wong
2024-08-23 4:10 ` Christoph Hellwig
2024-08-23 0:00 ` [PATCH 6/9] xfs: use XFS_BUF_DADDR_NULL for daddrs in getfsmap code Darrick J. Wong
2024-08-23 4:10 ` Christoph Hellwig
2024-08-23 0:00 ` [PATCH 7/9] xfs: Fix missing interval for missing_owner in xfs fsmap Darrick J. Wong
2024-08-26 3:58 ` Zizhi Wo
2024-08-23 0:00 ` [PATCH 8/9] xfs: take m_growlock when running growfsrt Darrick J. Wong
2024-08-23 4:08 ` Christoph Hellwig
2024-08-23 0:01 ` [PATCH 9/9] xfs: reset rootdir extent size hint after growfsrt Darrick J. Wong
2024-08-23 4:09 ` Christoph Hellwig
2024-08-23 4:09 ` [PATCHSET v4.0 01/10] xfs: various bug fixes for 6.11 Christoph Hellwig
2024-08-22 23:56 ` [PATCHSET v31.0 02/10] xfs: atomic file content commits Darrick J. Wong
2024-08-23 0:01 ` [PATCH 1/1] xfs: introduce new file range commit ioctls Darrick J. Wong
2024-08-23 4:12 ` Christoph Hellwig
2024-08-23 13:20 ` Jeff Layton
2024-08-23 17:41 ` Darrick J. Wong
2024-08-23 19:15 ` Jeff Layton
2024-08-24 3:29 ` Christoph Hellwig
2024-08-24 4:46 ` Darrick J. Wong
2024-08-24 4:48 ` Christoph Hellwig
2024-08-24 6:29 ` [PATCH v31.0.1 " Darrick J. Wong
2024-08-24 12:11 ` Jeff Layton
2024-08-25 4:52 ` Christoph Hellwig
2024-08-22 23:56 ` [PATCHSET v4.0 03/10] xfs: cleanups before adding metadata directories Darrick J. Wong
2024-08-23 0:01 ` [PATCH 1/3] xfs: validate inumber in xfs_iget Darrick J. Wong
2024-08-23 0:01 ` [PATCH 2/3] xfs: match on the global RT inode numbers in xfs_is_metadata_inode Darrick J. Wong
2024-08-23 0:02 ` [PATCH 3/3] xfs: pass the icreate args object to xfs_dialloc Darrick J. Wong
2024-08-23 4:13 ` Christoph Hellwig
2024-08-22 23:57 ` [PATCHSET v4.0 04/10] xfs: metadata inode directories Darrick J. Wong
2024-08-23 0:02 ` [PATCH 01/26] xfs: define the on-disk format for the metadir feature Darrick J. Wong
2024-08-23 4:30 ` Christoph Hellwig
2024-08-23 0:02 ` [PATCH 02/26] xfs: refactor loading quota inodes in the regular case Darrick J. Wong
2024-08-23 4:31 ` Christoph Hellwig
2024-08-23 17:51 ` Darrick J. Wong
2024-08-23 0:02 ` [PATCH 03/26] xfs: iget for metadata inodes Darrick J. Wong
2024-08-23 4:35 ` Christoph Hellwig
2024-08-23 17:53 ` Darrick J. Wong
2024-08-23 0:03 ` [PATCH 04/26] xfs: load metadata directory root at mount time Darrick J. Wong
2024-08-23 4:35 ` Christoph Hellwig
2024-08-23 0:03 ` [PATCH 05/26] xfs: enforce metadata inode flag Darrick J. Wong
2024-08-23 4:38 ` Christoph Hellwig
2024-08-23 17:55 ` Darrick J. Wong
2024-08-23 0:03 ` [PATCH 06/26] xfs: read and write metadata inode directory tree Darrick J. Wong
2024-08-23 4:39 ` Christoph Hellwig
2024-08-23 0:03 ` [PATCH 07/26] xfs: disable the agi rotor for metadata inodes Darrick J. Wong
2024-08-23 4:39 ` Christoph Hellwig
2024-08-23 0:04 ` [PATCH 08/26] xfs: hide metadata inodes from everyone because they are special Darrick J. Wong
2024-08-23 4:40 ` Christoph Hellwig
2024-08-26 0:41 ` Dave Chinner
2024-08-26 17:33 ` Darrick J. Wong
2024-08-23 0:04 ` [PATCH 09/26] xfs: advertise metadata directory feature Darrick J. Wong
2024-08-23 4:40 ` Christoph Hellwig
2024-08-23 0:04 ` [PATCH 10/26] xfs: allow bulkstat to return metadata directories Darrick J. Wong
2024-08-23 4:41 ` Christoph Hellwig
2024-08-23 0:05 ` [PATCH 11/26] xfs: don't count metadata directory files to quota Darrick J. Wong
2024-08-23 4:42 ` Christoph Hellwig
2024-08-26 0:47 ` Dave Chinner
2024-08-26 17:57 ` Darrick J. Wong
2024-08-23 0:05 ` [PATCH 12/26] xfs: mark quota inodes as metadata files Darrick J. Wong
2024-08-23 4:42 ` Christoph Hellwig
2024-08-23 0:05 ` [PATCH 13/26] xfs: adjust xfs_bmap_add_attrfork for metadir Darrick J. Wong
2024-08-23 4:42 ` Christoph Hellwig
2024-08-23 0:05 ` [PATCH 14/26] xfs: record health problems with the metadata directory Darrick J. Wong
2024-08-23 4:43 ` Christoph Hellwig
2024-08-23 0:06 ` [PATCH 15/26] xfs: refactor directory tree root predicates Darrick J. Wong
2024-08-23 4:48 ` Christoph Hellwig
2024-08-23 0:06 ` [PATCH 16/26] xfs: do not count metadata directory files when doing online quotacheck Darrick J. Wong
2024-08-23 4:48 ` Christoph Hellwig
2024-08-23 0:06 ` [PATCH 17/26] xfs: don't fail repairs on metadata files with no attr fork Darrick J. Wong
2024-08-23 4:49 ` Christoph Hellwig
2024-08-23 0:06 ` [PATCH 18/26] xfs: metadata files can have xattrs if metadir is enabled Darrick J. Wong
2024-08-23 4:50 ` Christoph Hellwig
2024-08-23 18:00 ` Darrick J. Wong
2024-08-23 0:07 ` [PATCH 19/26] xfs: adjust parent pointer scrubber for sb-rooted metadata files Darrick J. Wong
2024-08-23 4:50 ` Christoph Hellwig
2024-08-23 0:07 ` [PATCH 20/26] xfs: fix di_metatype field of inodes that won't load Darrick J. Wong
2024-08-23 4:51 ` Christoph Hellwig
2024-08-23 0:07 ` [PATCH 21/26] xfs: scrub metadata directories Darrick J. Wong
2024-08-23 4:53 ` Christoph Hellwig
2024-08-23 0:07 ` [PATCH 22/26] xfs: check the metadata directory inumber in superblocks Darrick J. Wong
2024-08-23 4:53 ` Christoph Hellwig
2024-08-23 0:08 ` [PATCH 23/26] xfs: move repair temporary files to the metadata directory tree Darrick J. Wong
2024-08-23 4:54 ` Christoph Hellwig
2024-08-23 0:08 ` [PATCH 24/26] xfs: check metadata directory file path connectivity Darrick J. Wong
2024-08-23 4:55 ` Christoph Hellwig
2024-08-23 0:08 ` [PATCH 25/26] xfs: confirm dotdot target before replacing it during a repair Darrick J. Wong
2024-08-23 4:55 ` Christoph Hellwig
2024-08-23 0:08 ` [PATCH 26/26] xfs: repair metadata directory file path connectivity Darrick J. Wong
2024-08-23 4:56 ` Christoph Hellwig
2024-08-22 23:57 ` [PATCHSET v4.0 05/10] xfs: clean up the rtbitmap code Darrick J. Wong
2024-08-23 0:09 ` [PATCH 01/12] xfs: remove xfs_validate_rtextents Darrick J. Wong
2024-08-23 0:09 ` [PATCH 02/12] xfs: factor out a xfs_validate_rt_geometry helper Darrick J. Wong
2024-08-23 0:09 ` [PATCH 03/12] xfs: make the RT rsum_cache mandatory Darrick J. Wong
2024-08-23 0:09 ` [PATCH 04/12] xfs: remove the limit argument to xfs_rtfind_back Darrick J. Wong
2024-08-23 0:10 ` [PATCH 05/12] xfs: assert a valid limit in xfs_rtfind_forw Darrick J. Wong
2024-08-23 0:10 ` [PATCH 06/12] xfs: add bounds checking to xfs_rt{bitmap,summary}_read_buf Darrick J. Wong
2024-08-23 0:10 ` [PATCH 07/12] xfs: cleanup the calling convention for xfs_rtpick_extent Darrick J. Wong
2024-08-23 0:11 ` [PATCH 08/12] xfs: push the calls to xfs_rtallocate_range out to xfs_bmap_rtalloc Darrick J. Wong
2024-08-23 0:11 ` [PATCH 09/12] xfs: factor out a xfs_growfs_rt_bmblock helper Darrick J. Wong
2024-08-23 0:11 ` [PATCH 10/12] xfs: factor out a xfs_last_rt_bmblock helper Darrick J. Wong
2024-08-23 0:11 ` [PATCH 11/12] xfs: factor out rtbitmap/summary initialization helpers Darrick J. Wong
2024-08-23 0:12 ` [PATCH 12/12] xfs: push transaction join out of xfs_rtbitmap_lock and xfs_rtgroup_lock Darrick J. Wong
2024-08-22 23:57 ` [PATCHSET v4.0 06/10] xfs: fixes and cleanups for the realtime allocator Darrick J. Wong
2024-08-23 0:12 ` [PATCH 01/10] xfs: use the recalculated transaction reservation in xfs_growfs_rt_bmblock Darrick J. Wong
2024-08-23 0:12 ` [PATCH 02/10] xfs: ensure rtx mask/shift are correct after growfs Darrick J. Wong
2024-08-23 0:12 ` [PATCH 03/10] xfs: don't return too-short extents from xfs_rtallocate_extent_block Darrick J. Wong
2024-08-23 4:57 ` Christoph Hellwig
2024-08-23 0:13 ` [PATCH 04/10] xfs: don't scan off the end of the rt volume in xfs_rtallocate_extent_block Darrick J. Wong
2024-08-23 4:57 ` Christoph Hellwig
2024-08-23 0:13 ` [PATCH 05/10] xfs: refactor aligning bestlen to prod Darrick J. Wong
2024-08-23 4:58 ` Christoph Hellwig
2024-08-23 0:13 ` [PATCH 06/10] xfs: clean up xfs_rtallocate_extent_exact a bit Darrick J. Wong
2024-08-23 4:58 ` Christoph Hellwig
2024-08-23 0:13 ` [PATCH 07/10] xfs: reduce excessive clamping of maxlen in xfs_rtallocate_extent_near Darrick J. Wong
2024-08-23 4:59 ` Christoph Hellwig
2024-08-23 0:14 ` [PATCH 08/10] xfs: fix broken variable-sized allocation detection in xfs_rtallocate_extent_block Darrick J. Wong
2024-08-23 4:59 ` Christoph Hellwig
2024-08-23 0:14 ` [PATCH 09/10] xfs: remove xfs_rtb_to_rtxrem Darrick J. Wong
2024-08-23 0:14 ` [PATCH 10/10] xfs: simplify xfs_rtalloc_query_range Darrick J. Wong
2024-08-22 23:57 ` [PATCHSET v4.0 07/10] xfs: create incore rt allocation groups Darrick J. Wong
2024-08-23 0:14 ` [PATCH 01/24] xfs: clean up the ISVALID macro in xfs_bmap_adjacent Darrick J. Wong
2024-08-23 0:15 ` [PATCH 02/24] xfs: factor out a xfs_rtallocate helper Darrick J. Wong
2024-08-23 0:15 ` [PATCH 03/24] xfs: rework the rtalloc fallback handling Darrick J. Wong
2024-08-23 0:15 ` [PATCH 04/24] xfs: factor out a xfs_rtallocate_align helper Darrick J. Wong
2024-08-23 0:15 ` [PATCH 05/24] xfs: make the rtalloc start hint a xfs_rtblock_t Darrick J. Wong
2024-08-23 0:16 ` [PATCH 06/24] xfs: add xchk_setup_nothing and xchk_nothing helpers Darrick J. Wong
2024-08-23 5:00 ` Christoph Hellwig
2024-08-23 0:16 ` [PATCH 07/24] xfs: remove xfs_{rtbitmap,rtsummary}_wordcount Darrick J. Wong
2024-08-23 0:16 ` [PATCH 08/24] xfs: replace m_rsumsize with m_rsumblocks Darrick J. Wong
2024-08-23 0:17 ` [PATCH 09/24] xfs: rearrange xfs_fsmap.c a little bit Darrick J. Wong
2024-08-23 5:01 ` Christoph Hellwig
2024-08-23 0:17 ` [PATCH 10/24] xfs: move xfs_ioc_getfsmap out of xfs_ioctl.c Darrick J. Wong
2024-08-23 5:01 ` Christoph Hellwig
2024-08-23 0:17 ` [PATCH 11/24] xfs: create incore realtime group structures Darrick J. Wong
2024-08-23 5:01 ` Christoph Hellwig
2024-08-25 23:56 ` Dave Chinner
2024-08-26 19:14 ` Darrick J. Wong [this message]
2024-08-27 0:57 ` Dave Chinner
2024-08-27 1:55 ` Darrick J. Wong
2024-08-27 3:00 ` Dave Chinner
2024-08-27 4:44 ` Christoph Hellwig
2024-08-27 4:38 ` Christoph Hellwig
2024-08-27 5:17 ` Darrick J. Wong
2024-08-27 5:18 ` Christoph Hellwig
2024-08-27 4:27 ` Christoph Hellwig
2024-08-27 5:19 ` Darrick J. Wong
2024-08-23 0:17 ` [PATCH 12/24] xfs: define locking primitives for realtime groups Darrick J. Wong
2024-08-23 5:02 ` Christoph Hellwig
2024-08-23 0:18 ` [PATCH 13/24] xfs: add a lockdep class key for rtgroup inodes Darrick J. Wong
2024-08-23 5:02 ` Christoph Hellwig
2024-08-25 23:58 ` Dave Chinner
2024-08-26 21:38 ` Darrick J. Wong
2024-08-27 0:58 ` Dave Chinner
2024-08-27 1:56 ` Darrick J. Wong
2024-08-27 3:00 ` Dave Chinner
2024-08-23 0:18 ` [PATCH 14/24] xfs: support caching rtgroup metadata inodes Darrick J. Wong
2024-08-23 5:02 ` Christoph Hellwig
2024-08-26 1:41 ` Dave Chinner
2024-08-26 18:37 ` Darrick J. Wong
2024-08-27 1:05 ` Dave Chinner
2024-08-27 2:01 ` Darrick J. Wong
2024-08-23 0:18 ` [PATCH 15/24] xfs: add rtgroup-based realtime scrubbing context management Darrick J. Wong
2024-08-23 5:03 ` Christoph Hellwig
2024-08-23 0:18 ` [PATCH 16/24] xfs: move RT bitmap and summary information to the rtgroup Darrick J. Wong
2024-08-26 1:58 ` Dave Chinner
2024-08-23 0:19 ` [PATCH 17/24] xfs: remove XFS_ILOCK_RT* Darrick J. Wong
2024-08-23 5:04 ` Christoph Hellwig
2024-08-23 0:19 ` [PATCH 18/24] xfs: calculate RT bitmap and summary blocks based on sb_rextents Darrick J. Wong
2024-08-23 0:19 ` [PATCH 19/24] xfs: factor out a xfs_growfs_rt_alloc_fake_mount helper Darrick J. Wong
2024-08-23 0:19 ` [PATCH 20/24] xfs: use xfs_growfs_rt_alloc_fake_mount in xfs_growfs_rt_alloc_blocks Darrick J. Wong
2024-08-23 0:20 ` [PATCH 21/24] xfs: factor out a xfs_growfs_check_rtgeom helper Darrick J. Wong
2024-08-26 2:06 ` Dave Chinner
2024-08-26 18:27 ` Darrick J. Wong
2024-08-27 1:29 ` Dave Chinner
2024-08-27 4:27 ` Darrick J. Wong
2024-08-27 22:16 ` Dave Chinner
2024-08-23 0:20 ` [PATCH 22/24] xfs: refactor xfs_rtbitmap_blockcount Darrick J. Wong
2024-08-23 0:20 ` [PATCH 23/24] xfs: refactor xfs_rtsummary_blockcount Darrick J. Wong
2024-08-23 0:20 ` [PATCH 24/24] xfs: make RT extent numbers relative to the rtgroup Darrick J. Wong
2024-08-22 23:58 ` [PATCHSET v4.0 08/10] xfs: preparation for realtime allocation groups Darrick J. Wong
2024-08-23 0:21 ` [PATCH 1/1] iomap: add a merge boundary flag Darrick J. Wong
2024-08-22 23:58 ` [PATCHSET v4.0 09/10] xfs: shard the realtime section Darrick J. Wong
2024-08-23 0:21 ` [PATCH 01/26] xfs: define the format of rt groups Darrick J. Wong
2024-08-23 5:11 ` Christoph Hellwig
2024-08-23 18:12 ` Darrick J. Wong
2024-08-23 0:21 ` [PATCH 02/26] xfs: check the realtime superblock at mount time Darrick J. Wong
2024-08-23 5:11 ` Christoph Hellwig
2024-08-23 0:21 ` [PATCH 03/26] xfs: update realtime super every time we update the primary fs super Darrick J. Wong
2024-08-23 5:12 ` Christoph Hellwig
2024-08-23 0:22 ` [PATCH 04/26] xfs: export realtime group geometry via XFS_FSOP_GEOM Darrick J. Wong
2024-08-23 5:12 ` Christoph Hellwig
2024-08-23 0:22 ` [PATCH 05/26] xfs: check that rtblock extents do not break rtsupers or rtgroups Darrick J. Wong
2024-08-23 5:13 ` Christoph Hellwig
2024-08-23 0:22 ` [PATCH 06/26] xfs: add a helper to prevent bmap merges across rtgroup boundaries Darrick J. Wong
2024-08-23 0:22 ` [PATCH 07/26] xfs: add frextents to the lazysbcounters when rtgroups enabled Darrick J. Wong
2024-08-23 5:13 ` Christoph Hellwig
2024-08-23 0:23 ` [PATCH 08/26] xfs: convert sick_map loops to use ARRAY_SIZE Darrick J. Wong
2024-08-23 5:14 ` Christoph Hellwig
2024-08-23 0:23 ` [PATCH 09/26] xfs: record rt group metadata errors in the health system Darrick J. Wong
2024-08-23 5:14 ` Christoph Hellwig
2024-08-23 0:23 ` [PATCH 10/26] xfs: export the geometry of realtime groups to userspace Darrick J. Wong
2024-08-23 5:14 ` Christoph Hellwig
2024-08-23 0:24 ` [PATCH 11/26] xfs: add block headers to realtime bitmap and summary blocks Darrick J. Wong
2024-08-23 5:15 ` Christoph Hellwig
2024-08-23 0:24 ` [PATCH 12/26] xfs: encode the rtbitmap in big endian format Darrick J. Wong
2024-08-23 5:15 ` Christoph Hellwig
2024-08-23 0:24 ` [PATCH 13/26] xfs: encode the rtsummary " Darrick J. Wong
2024-08-23 5:15 ` Christoph Hellwig
2024-08-23 0:24 ` [PATCH 14/26] xfs: grow the realtime section when realtime groups are enabled Darrick J. Wong
2024-08-23 5:16 ` Christoph Hellwig
2024-08-23 0:25 ` [PATCH 15/26] xfs: store rtgroup information with a bmap intent Darrick J. Wong
2024-08-23 5:16 ` Christoph Hellwig
2024-08-23 0:25 ` [PATCH 16/26] xfs: force swapext to a realtime file to use the file content exchange ioctl Darrick J. Wong
2024-08-23 5:17 ` Christoph Hellwig
2024-08-23 0:25 ` [PATCH 17/26] xfs: support logging EFIs for realtime extents Darrick J. Wong
2024-08-23 5:17 ` Christoph Hellwig
2024-08-26 4:33 ` Dave Chinner
2024-08-26 19:38 ` Darrick J. Wong
2024-08-27 1:36 ` Dave Chinner
2024-08-23 0:25 ` [PATCH 18/26] xfs: support error injection when freeing rt extents Darrick J. Wong
2024-08-23 5:18 ` Christoph Hellwig
2024-08-23 0:26 ` [PATCH 19/26] xfs: use realtime EFI to free extents when rtgroups are enabled Darrick J. Wong
2024-08-23 5:18 ` Christoph Hellwig
2024-08-23 0:26 ` [PATCH 20/26] xfs: don't merge ioends across RTGs Darrick J. Wong
2024-08-23 0:26 ` [PATCH 21/26] xfs: make the RT allocator rtgroup aware Darrick J. Wong
2024-08-26 4:56 ` Dave Chinner
2024-08-26 19:40 ` Darrick J. Wong
2024-08-27 1:56 ` Dave Chinner
2024-08-27 2:16 ` Darrick J. Wong
2024-08-27 5:00 ` Christoph Hellwig
2024-08-27 5:00 ` Christoph Hellwig
2024-08-27 4:59 ` Christoph Hellwig
2024-08-23 0:26 ` [PATCH 22/26] xfs: don't coalesce file mappings that cross rtgroup boundaries in scrub Darrick J. Wong
2024-08-23 5:19 ` Christoph Hellwig
2024-08-23 0:27 ` [PATCH 23/26] xfs: scrub the realtime group superblock Darrick J. Wong
2024-08-23 5:19 ` Christoph Hellwig
2024-08-23 0:27 ` [PATCH 24/26] xfs: repair " Darrick J. Wong
2024-08-23 5:19 ` Christoph Hellwig
2024-08-23 0:27 ` [PATCH 25/26] xfs: scrub metadir paths for rtgroup metadata Darrick J. Wong
2024-08-23 5:20 ` Christoph Hellwig
2024-08-23 0:27 ` [PATCH 26/26] xfs: mask off the rtbitmap and summary inodes when metadir in use Darrick J. Wong
2024-08-23 5:20 ` Christoph Hellwig
2024-08-22 23:58 ` [PATCHSET v4.0 10/10] xfs: store quota files in the metadir Darrick J. Wong
2024-08-23 0:28 ` [PATCH 1/6] xfs: refactor xfs_qm_destroy_quotainos Darrick J. Wong
2024-08-23 5:51 ` Christoph Hellwig
2024-08-23 0:28 ` [PATCH 2/6] xfs: use metadir for quota inodes Darrick J. Wong
2024-08-23 5:53 ` Christoph Hellwig
2024-08-23 18:20 ` Darrick J. Wong
2024-08-23 0:28 ` [PATCH 3/6] xfs: scrub quota file metapaths Darrick J. Wong
2024-08-23 5:53 ` Christoph Hellwig
2024-08-23 0:28 ` [PATCH 4/6] xfs: persist quota flags with metadir Darrick J. Wong
2024-08-23 5:54 ` Christoph Hellwig
2024-08-23 18:23 ` Darrick J. Wong
2024-08-26 9:42 ` Dave Chinner
2024-08-26 18:15 ` Darrick J. Wong
2024-08-23 0:29 ` [PATCH 5/6] xfs: update sb field checks when metadir is turned on Darrick J. Wong
2024-08-23 5:55 ` Christoph Hellwig
2024-08-26 9:52 ` Dave Chinner
2024-08-26 18:07 ` Darrick J. Wong
2024-08-27 2:16 ` Dave Chinner
2024-08-27 3:16 ` Darrick J. Wong
2024-08-23 0:29 ` [PATCH 6/6] xfs: enable metadata directory feature Darrick J. Wong
2024-08-23 5:58 ` Christoph Hellwig
2024-08-23 18:26 ` Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240826191404.GC865349@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=david@fromorbit.com \
--cc=hch@lst.de \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox