]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: verify dinode header first
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:51:04 +0000 (10:51 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:54:46 +0000 (10:54 -0800)
commita4ad4c4bd8db8b784d51c8b39662978d455c30f5
treefdf2091a028ec23c36b2e8f5c74393199e637448
parent930c9b2e9fc926633459ec52cc1eda9f5ac15856
xfs: verify dinode header first

Move the v3 inode integrity information (crc, owner, metauuid) before we
look at anything else in the inode so that we don't waste time on a torn
write or a totally garbled block.  This makes xfs_dinode_verify more
consistent with the other verifiers.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_inode_buf.c