From: Carlos Maiolino <cem@kernel.org>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>,
stable@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 01/11] xfs: always call xfs_qm_adjust_dqlimits during quotacheck repair
Date: Tue, 15 Sep 2026 22:04:42 +0200 [thread overview]
Message-ID: <aqmknmvUNCeQ2Yc4@nidhogg.toxiclabs.cc> (raw)
In-Reply-To: <20260915173820.GE2705364@frogsfrogsfrogs>
On Tue, Sep 15, 2026 at 10:38:20AM -0700, Darrick J. Wong wrote:
> On Mon, Sep 14, 2026 at 11:25:16PM -0700, Christoph Hellwig wrote:
> > On Mon, Sep 14, 2026 at 10:36:49PM -0700, Darrick J. Wong wrote:
> > > From: Darrick J. Wong <djwong@kernel.org>
> > >
> > > LOLLM notices that everywhere else in the kernel, a call to
> > > xfs_qm_adjust_dqlimits precedes every call to xfs_qm_adjust_dqtimers.
> > > In particular, mount-time quotacheck does this.
> > >
> > > Looking at xfs_qm_adjust_dqlimits, that function is in charge of
> > > conveying default limits to a dquot if that dquot's limits have been
> > > zeroed. That's quite possible in a repair, so let's follow what
> > > everyone else does and set it. This requires us to add a new predicate
> > > to decide if xfs_qm_adjust_dqlimits is likely to reset any of the
> > > dquot's limits, and to set the dirty flag to true if so.
> >
> > I'd vote for merging the two functions as they clearly always should
> > be called together instead.
>
> Ok, I'll combine them into an xfs_qm_adjust_dqenforcement() function as
> a separate patch...
>
> > > A different LOLLM noticed that we have no way to force xchk_commit_dquot
> > > to call xfs_qm_adjust_dqtimers, so pack that in at the same time.
> >
> > This feels completely unrelated, and could also use a much more
> > detailed explanation why we'd want that.
>
> ...and turn this patch into a justification for code that forces dirty =
> true. cem said he'd like to take the other 10 patches from part 15, so
> I'll move these two to the start of part 16.
>
Yeah, I've got the other 10 patches already and discarded the first one.
Fell free to include that in the next series =]
Cheers
next prev parent reply other threads:[~2026-09-15 20:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 5:36 [PATCHSET] xfs: LLM-inspired bug fixes, part 15 Darrick J. Wong
2026-09-15 5:36 ` [PATCH 01/11] xfs: always call xfs_qm_adjust_dqlimits during quotacheck repair Darrick J. Wong
2026-09-15 6:25 ` Christoph Hellwig
2026-09-15 17:38 ` Darrick J. Wong
2026-09-15 20:04 ` Carlos Maiolino [this message]
2026-09-15 5:37 ` [PATCH 02/11] xfs: call xfs_dquot_set_prealloc_limits if we installed default rtb limits Darrick J. Wong
2026-09-15 6:26 ` Christoph Hellwig
2026-09-15 5:37 ` [PATCH 03/11] xfs: fix rtgroup repair estimations Darrick J. Wong
2026-09-15 6:26 ` Christoph Hellwig
2026-09-15 5:37 ` [PATCH 04/11] xfs: don't cross reference rmapbt with bitmaps if they're incomplete Darrick J. Wong
2026-09-15 6:29 ` Christoph Hellwig
2026-09-15 5:37 ` [PATCH 05/11] xfs: don't let memory failures leak blocks and kill repairs Darrick J. Wong
2026-09-15 6:30 ` Christoph Hellwig
2026-09-15 5:38 ` [PATCH 06/11] xfs: don't merge different file IO error types Darrick J. Wong
2026-09-15 6:30 ` Christoph Hellwig
2026-09-15 5:38 ` [PATCH 07/11] xfs: fix blockgc group quota scanning when usrquota isn't enforced Darrick J. Wong
2026-09-15 6:31 ` Christoph Hellwig
2026-09-15 5:38 ` [PATCH 08/11] xfs: fix cursor and pointer handling when recovering iunlink buckets Darrick J. Wong
2026-09-15 6:31 ` Christoph Hellwig
2026-09-15 5:38 ` [PATCH 09/11] xfs: drop dquot flush lock when we can't find a buffer to flush Darrick J. Wong
2026-09-15 6:32 ` Christoph Hellwig
2026-09-15 5:39 ` [PATCH 10/11] xfs: don't let hidden_space go negative in xfs_metafile_resv_init Darrick J. Wong
2026-09-15 6:32 ` Christoph Hellwig
2026-09-15 5:39 ` [PATCH 11/11] xfs: fix wild memcpy access when formatting ondisk rtrefcount btree roots Darrick J. Wong
2026-09-15 6:33 ` Christoph Hellwig
2026-09-16 12:06 ` [PATCHSET] xfs: LLM-inspired bug fixes, part 15 Carlos Maiolino
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=aqmknmvUNCeQ2Yc4@nidhogg.toxiclabs.cc \
--to=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@infradead.org \
--cc=linux-xfs@vger.kernel.org \
--cc=stable@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