public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: sandeen@sandeen.net, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 5/6] mkfs: round log size down if rounding log start up causes overflow
Date: Tue, 10 May 2022 05:55:08 -0700	[thread overview]
Message-ID: <YnpgrLFbPG4aBL9y@infradead.org> (raw)
In-Reply-To: <165176673695.248587.16584045364969444033.stgit@magnolia>

On Thu, May 05, 2022 at 09:05:36AM -0700, Darrick J. Wong wrote:
> +	/*
> +	 * If the end of the log has been rounded past the end of the AG,
> +	 * reduce logblocks by a stripe unit to try to get it back under EOAG.
> +	 */
> +	if (!libxfs_verify_fsbext(mp, cfg->logstart, cfg->logblocks) &&
> +	    cfg->logblocks > sunit) {
> +		cfg->logblocks -= sunit;
> +	}

The curly braces look a little out of place here, but otherwise this
looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>

  reply	other threads:[~2022-05-10 12:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-05 16:05 [PATCHSET 0/6] mkfs: various bug fixes Darrick J. Wong
2022-05-05 16:05 ` [PATCH 1/6] mkfs: fix missing validation of -l size against maximum internal log size Darrick J. Wong
2022-05-05 16:05 ` [PATCH 2/6] mkfs: reduce internal log size when log stripe units are in play Darrick J. Wong
2022-05-05 16:05 ` [PATCH 3/6] mkfs: don't let internal logs bump the root dir inode chunk to AG 1 Darrick J. Wong
2022-05-05 16:05 ` [PATCH 4/6] mkfs: improve log extent validation Darrick J. Wong
2022-05-05 16:05 ` [PATCH 5/6] mkfs: round log size down if rounding log start up causes overflow Darrick J. Wong
2022-05-10 12:55   ` Christoph Hellwig [this message]
2022-05-05 16:05 ` [PATCH 6/6] mkfs: don't trample the gid set in the protofile Darrick J. Wong
2022-05-10 12:55   ` Christoph Hellwig

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=YnpgrLFbPG4aBL9y@infradead.org \
    --to=hch@infradead.org \
    --cc=djwong@kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=sandeen@sandeen.net \
    /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