]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/xfs: Add a helper to export inode core size
authorZiyang Zhang <ZiyangZhang@linux.alibaba.com>
Mon, 12 Dec 2022 05:56:44 +0000 (13:56 +0800)
committerZorro Lang <zlang@kernel.org>
Tue, 13 Dec 2022 09:14:37 +0000 (17:14 +0800)
commitbe957968f6fade15d0a7a6058ae270141263bd64
tree14a9bdb16020f1404a4be6766a87647979884dbd
parent87ab8bdf20db7308e7ecc2ddcdce530ec1f08f1f
common/xfs: Add a helper to export inode core size

Some xfs test cases need the number of bytes reserved for only the inode
record, excluding the immediate fork areas. Now the value is hard-coded
and it is not a good chioce. Add a helper in common/xfs to export the
inode core size.

Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Ziyang Zhang <ZiyangZhang@linux.alibaba.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/xfs
tests/xfs/335
tests/xfs/336
tests/xfs/337
tests/xfs/341
tests/xfs/342