xfs: check sizes of XFS on-disk structures at compile time
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 8 Mar 2016 21:15:14 +0000 (08:15 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 8 Mar 2016 21:15:14 +0000 (08:15 +1100)
commit30cbc591c34e680e8b5d6d675ea49effe42a0570
tree8580f806e3ebe6f762bd4fb472d29539bd736034
parent5110cd82ca90e6ce04c1c3264587c183aad1f179
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>
fs/xfs/xfs_ondisk.h [new file with mode: 0644]
fs/xfs/xfs_super.c