xfs: use verifier magic field in dir2 leaf verifiers
authorBrian Foster <bfoster@redhat.com>
Thu, 7 Feb 2019 18:45:47 +0000 (10:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 00:07:01 +0000 (16:07 -0800)
commit09f420197d7ced360b4809606efd7a65f842c2c0
tree93199e50fbae6dc200e715bece2c090f57818b40
parentb8f89801664f8413a88cf2c7539d1aeae07dd3c5
xfs: use verifier magic field in dir2 leaf verifiers

The dir2 leaf verifiers share the same underlying structure
verification code, but implement six accessor functions to multiplex
the code across the two verifiers. Further, the magic value isn't
sufficiently abstracted such that the common helper has to manually
fix up the magic from the caller on v5 filesystems.

Use the magic field in the verifier structure to eliminate the
duplicate code and clean this all up. No functional change.

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>
fs/xfs/libxfs/xfs_dir2_leaf.c