]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: move various type verifiers to common file
authorDave Chinner <dchinner@redhat.com>
Thu, 7 Jun 2018 14:53:33 +0000 (07:53 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 8 Jun 2018 17:07:51 +0000 (10:07 -0700)
commit840b62ecc77ed8bad9afe4f3dcc0bc2c615762c5
tree4d705bbf018694eb4ad9c8ba9a19721d8a5e2fdf
parent16d0e559f7332d233333a2fb838fb97cc8d7555f
xfs: move various type verifiers to common file

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>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/libxfs/xfs_ialloc.h
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_types.c [new file with mode: 0644]
fs/xfs/libxfs/xfs_types.h
fs/xfs/scrub/agheader.c