From: Christoph Hellwig <hch@lst.de>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Brian Foster <bfoster@redhat.com>, Christoph Hellwig <hch@lst.de>,
linux-xfs@vger.kernel.org
Subject: Re: t_firstblock assert triggered from dedup in generic/051
Date: Thu, 12 Jul 2018 14:06:24 +0200 [thread overview]
Message-ID: <20180712120624.GA28984@lst.de> (raw)
In-Reply-To: <20180712002534.GJ32415@magnolia>
On Wed, Jul 11, 2018 at 05:25:34PM -0700, Darrick J. Wong wrote:
> > + /*
> > + * Roll the transaction once more to avoid returning to the caller
> > + * with a dirty transaction.
> > + */
> > + error = xfs_defer_trans_roll(tp, dop);
>
> Heh, it doesn't test ok; back to the drawing board...
>
> XFS: Assertion failed: !test_bit(XFS_LI_DIRTY, &lip->li_flags), file: fs/xfs/xfs_trans.c, line: 740
I haven't hit this yet with a full 4k+reflink and 1k+reflink run,
so far things seem to do fine.
> I think we only need to roll if the transaction is actually dirty, i.e.
>
> if ((*tp)->t_flags & XFS_TRANS_DIRTY)
> error = xfs_defer_trans_roll(tp, dop);
But independent of me not hitting the assert that looks reasonable.
prev parent reply other threads:[~2018-07-12 12:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-11 18:42 t_firstblock assert triggered from dedup in generic/051 Christoph Hellwig
2018-07-11 19:09 ` Darrick J. Wong
2018-07-11 19:38 ` Brian Foster
2018-07-11 19:43 ` Darrick J. Wong
2018-07-12 0:25 ` Darrick J. Wong
2018-07-12 12:06 ` Christoph Hellwig [this message]
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=20180712120624.GA28984@lst.de \
--to=hch@lst.de \
--cc=bfoster@redhat.com \
--cc=darrick.wong@oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.