• Darrick J. Wong's avatar
    xfs: separate the dqrele_all inode grab logic from xfs_inode_walk_ag_grab · b9baaef4
    Darrick J. Wong authored
    Disentangle the dqrele_all inode grab code from the "generic" inode walk
    grabbing code, and and use the opportunity to document why the dqrele
    grab function does what it does.  Since xfs_inode_walk_ag_grab is now
    only used for blockgc, rename it to reflect that.
    
    Ultimately, there will be four reasons to perform a walk of incore
    inodes: quotaoff dquote releasing (dqrele), garbage collection of
    speculative preallocations (blockgc), reclamation of incore inodes
    (reclaim), and deferred inactivation (inodegc).  Each of these four have
    their own slightly different criteria for deciding if they want to
    handle an inode, so it makes more sense to have four cohesive igrab
    functions than one confusing parameteric grab function like we do now.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    b9baaef4
xfs_icache.c 47.4 KB