mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wilfred Mallawa <wilfred.mallawa@wdc.com>
To: "djwong@kernel.org" <djwong@kernel.org>
Cc: hch <hch@lst.de>,
	"linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"cem@kernel.org" <cem@kernel.org>
Subject: Re: [PATCH] xfs: add write pointer to xfs_rtgroup_geometry
Date: Fri, 27 Feb 2026 05:16:39 +0000	[thread overview]
Message-ID: <dbda17987ff33a132da82b8635ac2a5c6ae01c78.camel@wdc.com> (raw)
In-Reply-To: <20260227040619.GI13853@frogsfrogsfrogs>

[snip]
> > [1] https://lwn.net/Articles/1059364/
> > Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
> > ---
> >  fs/xfs/libxfs/xfs_fs.h |  6 +++++-
> >  fs/xfs/xfs_ioctl.c     | 20 ++++++++++++++++++++
> >  2 files changed, 25 insertions(+), 1 deletion(-)
> > 
> > diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h
> > index d165de607d17..ca63ae67f16c 100644
> > --- a/fs/xfs/libxfs/xfs_fs.h
> > +++ b/fs/xfs/libxfs/xfs_fs.h
> > @@ -995,7 +995,9 @@ struct xfs_rtgroup_geometry {
> >  	__u32 rg_sick;		/* o: sick things in ag */
> >  	__u32 rg_checked;	/* o: checked metadata in ag */
> >  	__u32 rg_flags;		/* i/o: flags for this ag
> > */
> > -	__u32 rg_reserved[27];	/* o: zero */
> > +	__u32 rg_reserved0;	/* o: preserve alignment */
> > +	__u64 rg_writepointer;  /* o: write pointer sector for
> > zoned */
> 
> Hrm.  It's not possible to advance the write pointer less than a
> single
> xfs fsblock, right? 

I believe so, perhaps Christoph could chime in?

> zoned rt requires rt groups, so that means the
> write pointer within a rtgroup has to be a xfs_rgblock_t (32bit)
> value,
> so shouldn't this be a __u32 field?

I figured since this is currently returning a basic block offset
(similar to a zone report from a zoned device), it *could* exceed a
U32_MAX for larger zones (?). Does it seem more appropriate to return
the xfs fsblock offset here instead?

Wilfred
> 

  reply	other threads:[~2026-02-27  5:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27  3:01 Wilfred Mallawa
2026-02-27  4:06 ` Darrick J. Wong
2026-02-27  5:16   ` Wilfred Mallawa [this message]
2026-02-27 13:52     ` hch

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=dbda17987ff33a132da82b8635ac2a5c6ae01c78.camel@wdc.com \
    --to=wilfred.mallawa@wdc.com \
    --cc=cem@kernel.org \
    --cc=djwong@kernel.org \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®