]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: remove the magic numbers in xfs_btree_block-related len macros
authorHou Tao <houtao1@huawei.com>
Wed, 10 Aug 2016 01:29:36 +0000 (11:29 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 10 Aug 2016 01:29:36 +0000 (11:29 +1000)
commit2873bdf0957ae50352c21407c20b7d51e6c2f1d3
treeadb76f30f7b0c35d6855661dcdd2d3805f005f1b
parentdcaff8acc8dd3cd4a28f9b4cb1e53598f60bf96a
xfs: remove the magic numbers in xfs_btree_block-related len macros

Source kernel commit: ad70328a503fae813a563dbe97dd3466ac079e8e

replace the magic numbers by offsetof(...) and sizeof(...), and add two
extra checks on xfs_check_ondisk_structs()

[dchinner: renamed header structures to be more descriptive]

Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_format.h