xfs: check sizes of XFS on-disk structures at compile time

Check the sizes of XFS on-disk structures when compiling the kernel.
Use this to catch inadvertent changes in structure size due to padding
and alignment issues, etc.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Darrick J. Wong 2016-03-09 08:15:14 +11:00 • committed by Dave Chinner
commit 30cbc591c3
2 changed files with 120 additions and 0 deletions