• Dave Chinner's avatar
    xfs: reduce direct usage of mp->m_dir_geo · 53f82db0
    Dave Chinner authored
    There are many places in the directory code were we don't pass the
    args into and so have to extract the geometry direct from the mount
    structure. Push the args or the geometry into these leaf functions
    so that we don't need to grab it from the struct xfs_mount.
    
    This, in turn, brings use to the point where directory geometry is
    no longer a property of the struct xfs_mount; it is not a global
    property anymore, and hence we can start to consider per-directory
    configuration of physical geometries.
    
    Start by converting the xfs_dir_isblock/leaf code - pass in the
    xfs_da_args and convert the readdir code to use xfs_da_args like
    the rest of the directory code to pass information around.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    
    53f82db0
xfs_dir2.c 17.8 KB