• Steven Whitehouse's avatar
    GFS2: Use cached rgrp in gfs2_rlist_add() · 70b0c365
    Steven Whitehouse authored
    Each block which is deallocated, requires a call to gfs2_rlist_add()
    and each of those calls was calling gfs2_blk2rgrpd() in order to
    figure out which rgrp the block belonged in. This can be speeded up
    by making use of the rgrp cached in the inode. We also reset this
    cached rgrp in case the block has changed rgrp. This should provide
    a big reduction in gfs2_blk2rgrpd() calls during deallocation.
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    70b0c365
dir.c 45.8 KB