From: Christoph Hellwig <hch@infradead.org>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: sandeen@sandeen.net, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 3/4] xfs_repair: check quota values if quota was loaded
Date: Wed, 15 Jul 2020 19:29:36 +0100 [thread overview]
Message-ID: <20200715182936.GA20231@infradead.org> (raw)
In-Reply-To: <159476318590.3156699.15126640025600603984.stgit@magnolia>
On Tue, Jul 14, 2020 at 02:46:25PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> If the filesystem looks like it had up to date quota information, check
> it against what's in the filesystem and report if we find discrepancies.
> This closes one of the major gaps in corruptions that are detected by
> xfs_check vs. xfs_repair.
This looks pretty good!
Reviewed-by: Christoph Hellwig <hch@lst.de>
One nitpick below:
> +/* Initialize an incore dquot tree. */
> +static struct qc_dquots *
> +qc_dquots_init(
> + uint16_t type)
> +{
> + struct qc_dquots *dquots;
> +
> + dquots = calloc(1, sizeof(struct qc_dquots));
> + if (!dquots)
> + return NULL;
> +
> + dquots->type = type;
> + pthread_mutex_init(&dquots->lock, NULL);
> + avl64_init_tree(&dquots->tree, &qc_cache_ops);
> + return dquots;
> +}
I'd name this something will alloc instead of init as it allocates the
qc_dquots structure.
next prev parent reply other threads:[~2020-07-15 18:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-14 21:46 [PATCH v2.2 0/4] xfs_repair: check quota counters Darrick J. Wong
2020-07-14 21:46 ` [PATCH 1/4] xfs_repair: alphabetize HFILES and CFILES Darrick J. Wong
2020-07-15 17:47 ` Christoph Hellwig
2020-07-14 21:46 ` [PATCH 2/4] xfs_repair: fix clearing of quota CHKD flags Darrick J. Wong
2020-07-15 17:47 ` Christoph Hellwig
2020-07-14 21:46 ` [PATCH 3/4] xfs_repair: check quota values if quota was loaded Darrick J. Wong
2020-07-15 18:29 ` Christoph Hellwig [this message]
2020-07-14 21:46 ` [PATCH 4/4] xfs_repair: skip mount time quotacheck if our quotacheck was ok Darrick J. Wong
2020-07-15 18:30 ` Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2020-05-14 16:56 [PATCH v2 0/4] xfs_repair: check quota counters Darrick J. Wong
2020-05-14 16:56 ` [PATCH 3/4] xfs_repair: check quota values if quota was loaded 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=20200715182936.GA20231@infradead.org \
--to=hch@infradead.org \
--cc=darrick.wong@oracle.com \
--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;
as well as URLs for NNTP newsgroup(s).