Thread (49 messages) 49 messages, 3 authors, 2021-03-26

Re: [PATCH 06/18] xfs: don't clear the "dinode core" in xfs_inode_alloc

From: Christoph Hellwig <hch@lst.de>
Date: 2021-03-24 18:29:39

On Wed, Mar 24, 2021 at 11:27:25AM -0700, Darrick J. Wong wrote:
On Wed, Mar 24, 2021 at 03:21:17PM +0100, Christoph Hellwig wrote:
quoted
The xfs_icdinode structure just contains a random mix of inode field,
which are all read from the on-disk inode and mostly not looked at
before reading the inode or initializing a new inode cluster.  The
only exceptions are the forkoff and blocks field, which are used
in sanity checks for freshly allocated inodes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Hmm, does this fix the crash I complained about last time?

https://lore.kernel.org/linux-xfs/20200702183426.GD7606@magnolia/ (local)

I /think/ it does, but can't tell for sure from the comments. :/
Your crash was due to the uninitialized diflags2, which is fixed very
early on in the series.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help