]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: always check magic values in on-disk byte order
authorBrian Foster <bfoster@redhat.com>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
commit7563fc9cf54a1a70e358377754a7baee6e245b87
tree8a2e99f7bfa7b580d77346b71618fb13ed7fb4b3
parentd9fa4408d4662613bd0b22fc608806ade9650da1
xfs: always check magic values in on-disk byte order

Source kernel commit: e34d3e74eb8f6eb020312cec747ff55ee1d1ca18

Most verifiers that check on-disk magic values convert the CPU
endian magic value constant to disk endian to facilitate compile
time optimization of the byte swap and reduce the need for runtime
byte swaps in buffer verifiers. Several buffer verifiers do not
follow this pattern. Update those verifiers for consistency.

Also fix up a random typo in the inode readahead verifier name.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_da_btree.c
libxfs/xfs_inode_buf.c
libxfs/xfs_sb.c