• D
    xfs: prepare for moving perag definitions and support to libxfs · 61aa005a
    Dave Chinner 提交于
    The perag structures really need to be defined with the rest of the
    AG support infrastructure. The struct xfs_perag and init/teardown
    has been placed in xfs_mount.[ch] because there are differences in
    the structure between kernel and userspace. Mainly that userspace
    doesn't have a lot of the internal stuff that the kernel has for
    caches and discard and other such structures.
    
    However, it makes more sense to move this to libxfs than to keep
    this separation because we are now moving to use struct perags
    everywhere in the code instead of passing raw agnumber_t values
    about. Hence we shoudl really move the support infrastructure to
    libxfs/xfs_ag.[ch].
    
    To do this without breaking userspace, first we need to rearrange
    the structures and code so that all the kernel specific code is
    located together. This makes it simple for userspace to ifdef out
    the all the parts it does not need, minimising the code differences
    between kernel and userspace. The next commit will do the move...
    Signed-off-by: NDave Chinner <dchinner@redhat.com>
    Reviewed-by: NBrian Foster <bfoster@redhat.com>
    Reviewed-by: NDarrick J. Wong <djwong@kernel.org>
    61aa005a
xfs_mount.h 15.6 KB