xfs: fix xfs_buf magic number endian checks
Create a separate magic16 check function so that we don't run afoul of static checkers. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -358,8 +358,8 @@ xfs_attr3_leaf_read_verify(
|
||||
|
||||
const struct xfs_buf_ops xfs_attr3_leaf_buf_ops = {
|
||||
.name = "xfs_attr3_leaf",
|
||||
.magic = { cpu_to_be16(XFS_ATTR_LEAF_MAGIC),
|
||||
cpu_to_be16(XFS_ATTR3_LEAF_MAGIC) },
|
||||
.magic16 = { cpu_to_be16(XFS_ATTR_LEAF_MAGIC),
|
||||
cpu_to_be16(XFS_ATTR3_LEAF_MAGIC) },
|
||||
.verify_read = xfs_attr3_leaf_read_verify,
|
||||
.verify_write = xfs_attr3_leaf_write_verify,
|
||||
.verify_struct = xfs_attr3_leaf_verify,
|
||||
|
Reference in New Issue
Block a user