xfs
[Top] [All Lists]

Re: Review: freezing sometimes leaves the log dirty

To: Nathan Scott <nscott@xxxxxxxxxx>
Subject: Re: Review: freezing sometimes leaves the log dirty
From: David Chinner <dgc@xxxxxxx>
Date: Mon, 5 Feb 2007 10:45:15 +1100
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, David Chinner <dgc@xxxxxxx>, xfs-dev@xxxxxxx, xfs@xxxxxxxxxxx
In-reply-to: <1170626215.18017.394.camel@edge>
References: <20070130220326.GM33919298@xxxxxxxxxxxxxxxxx> <20070202114623.GA23187@xxxxxxxxxxxxx> <1170626215.18017.394.camel@edge>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Mon, Feb 05, 2007 at 08:56:55AM +1100, Nathan Scott wrote:
> On Fri, 2007-02-02 at 11:46 +0000, Christoph Hellwig wrote:
> > On Wed, Jan 31, 2007 at 09:03:26AM +1100, David Chinner wrote:
> > > + /* flush inodes and push all remaining buffers out to disk */
> > > + xfs_quiesce_fs(mp);
> > > +
> > > + BUG_ON(atomic_read(&mp->m_active_trans) > 0);
> > > +
> > 
> > xfs_vfsops.c is considered common code, so you should probably use
> > ASSERT here, not BUG_ON.
> 
> There's also an ASSERT_ALWAYS macro IIRC, if you want the equivalent
> functionality of BUG_ON (i.e. always check).

True, I forgot about that one. Thx, Nathan....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>