]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: move various type verifiers to common file
authorDave Chinner <dchinner@redhat.com>
Thu, 28 Jun 2018 20:11:58 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Jun 2018 20:11:58 +0000 (15:11 -0500)
commit1727fd1713ba655f343750eb12d25a718627ea0a
tree208d090f173b16abb3c618f1404b5f390130096e
parent37b3b4d6c38aaf501dd7714d9670bff4ac282923
xfs: move various type verifiers to common file

Source kernel commit: 86210fbebae6e60b1158ccd6b47ee7ae1abf5b2c

New verification functions like xfs_verify_fsbno() and
xfs_verify_agino() are spread across multiple files and different
header files. They really don't fit cleanly into the places they've
been put, and have wider scope than the current header includes.

Move the type verifiers to a new file in libxfs (xfs-types.c) and
the prototypes to xfs_types.h where they will be visible to all the
code that uses the types.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/Makefile
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc.h
libxfs/xfs_rtbitmap.c
libxfs/xfs_types.c [new file with mode: 0644]
libxfs/xfs_types.h