From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Dave Chinner <david@fromorbit.com>
Cc: linux-xfs@vger.kernel.org, Brian Foster <bfoster@redhat.com>
Subject: Re: [PATCH 3/5] xfs: hoist the already_fixed variable to the scrub context
Date: Mon, 15 Apr 2019 17:54:42 -0700 [thread overview]
Message-ID: <20190416005442.GI4752@magnolia> (raw)
In-Reply-To: <20190416005104.GI29573@dread.disaster.area>
On Tue, Apr 16, 2019 at 10:51:04AM +1000, Dave Chinner wrote:
> On Mon, Apr 15, 2019 at 05:19:49PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <darrick.wong@oracle.com>
> >
> > Now that we no longer memset the scrub context, we can move the
> > already_fixed variable into the scrub context's state flags instead of
> > passing around pointers to separate stack variables.
> >
> > Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
>
> Minor comment below, otherwise
>
> Reviewed-by: Dave Chinner <dchinner@redhat.com>
>
> > diff --git a/fs/xfs/scrub/scrub.h b/fs/xfs/scrub/scrub.h
> > index 60359e7de930..1b23bf141438 100644
> > --- a/fs/xfs/scrub/scrub.h
> > +++ b/fs/xfs/scrub/scrub.h
> > @@ -63,16 +63,17 @@ struct xfs_scrub {
> > void *buf;
> > uint ilock_flags;
> >
> > - /* See the XCHK state flags below. */
> > + /* See the XCHK/XREP state flags below. */
> > unsigned int flags;
> >
> > /* State tracking for single-AG operations. */
> > struct xchk_ag sa;
> > };
> >
> > -/* XCHK state flags */
> > +/* XCHK/XREP state flags */
> > #define XCHK_TRY_HARDER (1 << 0) /* can't get resources, try again */
> > #define XCHK_HAS_QUOTAOFFLOCK (1 << 1) /* we hold the quotaoff lock */
> > +#define XREP_ALREADY_FIXED (1 << 31) /* checking our repair work */
> >
>
> Can you just put a comment here saying xchk flags grow from the
> bottom up, XREP grow from the top down?
Ok, will do.
--D
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@fromorbit.com
next prev parent reply other threads:[~2019-04-16 0:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-16 0:19 [PATCH v3 0/5] xfs: scrub/repair update health tracking Darrick J. Wong
2019-04-16 0:19 ` [PATCH 1/5] xfs: refactor scrub context initialization Darrick J. Wong
2019-04-16 0:47 ` Dave Chinner
2019-04-16 0:19 ` [PATCH 2/5] xfs: collapse scrub bool state flags into a single unsigned int Darrick J. Wong
2019-04-16 0:49 ` Dave Chinner
2019-04-16 0:19 ` [PATCH 3/5] xfs: hoist the already_fixed variable to the scrub context Darrick J. Wong
2019-04-16 0:51 ` Dave Chinner
2019-04-16 0:54 ` Darrick J. Wong [this message]
2019-04-16 0:19 ` [PATCH 4/5] xfs: scrub/repair should update filesystem metadata health Darrick J. Wong
2019-04-16 1:09 ` Dave Chinner
2019-04-16 1:31 ` Darrick J. Wong
2019-04-16 1:43 ` [PATCH v2 " Darrick J. Wong
2019-04-16 7:57 ` Dave Chinner
2019-04-16 0:20 ` [PATCH 5/5] xfs: scrub should only cross-reference with healthy btrees Darrick J. Wong
2019-04-16 1:16 ` Dave Chinner
2019-04-16 1:45 ` [PATCH v2 " Darrick J. Wong
2019-04-16 7:58 ` Dave Chinner
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=20190416005442.GI4752@magnolia \
--to=darrick.wong@oracle.com \
--cc=bfoster@redhat.com \
--cc=david@fromorbit.com \
--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