xfs
[Top] [All Lists]

Re: [PATCH] remove v_number

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH] remove v_number
From: David Chinner <dgc@xxxxxxx>
Date: Thu, 30 Nov 2006 11:30:50 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20061129154729.GC6400@lst.de>
References: <20061129154729.GC6400@lst.de>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Wed, Nov 29, 2006 at 04:47:29PM +0100, Christoph Hellwig wrote:
> v_number is unused except for the naming some locks (which is a
> functionality totally unused by Linux), so remove it and assorted
> crap.  Besides saving two words in struct vnode this also gets rid
> of a spinlock per inode allocation.

Hmm - given that I've just used the v_number in post-mortem analysis
of a nasty bug to correlate the sequence of events during a series
of mkdir operations (i.e. transactions in the incore log buffers,
the resulting xfs_inodes and some screwed up dentries) that lead to
a BUG_ON being tripped in d_instantiate.

So, while it appears to be unused, it is _very_ useful for
determining the SOE that has occurred in certain types of problems.

FWIW, while analysing this crash dump a couple of days ago I was
wishing that dentries had an equivalent sequence number because
there is no way to tell what dentry was supposed to be related to
what inode after it got screwed up...

Cheers,

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


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