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: "Darrick J. Wong" <djwong@kernel.org>
Date: 2021-03-24 18:41:35

On Wed, Mar 24, 2021 at 07:28:49PM +0100, Christoph Hellwig wrote:
On Wed, Mar 24, 2021 at 11:27:25AM -0700, Darrick J. Wong wrote:
quoted
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.
Ah, ok.  I thought that might be the proper fix for that.  At the very
least, the repro instructions don't lead to a crash this time, so I'll
toss this series at fstests cloud and see if anything falls out.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help