• Darrick J. Wong's avatar
    xfs: give xfs_bmap_intent its own perag reference · 774a99b4
    Darrick J. Wong authored
    Give the xfs_bmap_intent an active reference to the perag structure
    data.  This reference will be used to enable scrub intent draining
    functionality in subsequent patches.  Later, shrink will use these
    passive references to know if an AG is quiesced or not.
    
    The reason why we take a passive ref for a file mapping operation is
    simple: we're committing to some sort of action involving space in an
    AG, so we want to indicate our interest in that AG.  The space is
    already allocated, so we need to be able to operate on AGs that are
    offline or being shrunk.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    774a99b4
xfs_bmap.c 165 KB