]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: stop misusing an onstack inode
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Aug 2020 20:31:59 +0000 (16:31 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:31:59 +0000 (16:31 -0400)
commit6526f30e4801e32b48643d2b5dc21e5eaf2a242d
tree6fcd739ffa4aadbcb232a6989d53812ca5a7139e
parent2703aa2c40bdd2c45313a040f0525d980044fbeb
xfs_db: stop misusing an onstack inode

The onstack inode in xfs_check's process_inode is a potential landmine
since it's not a /real/ incore inode.  The upcoming 5.8 merge will make
this messier wrt inode forks, so just remove the onstack inode and
reference the ondisk fields directly.  This also reduces the amount of
thinking that I have to do w.r.t. future libxfs porting efforts.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/check.c