• S
    GFS2: Cache the most recently used resource group in the inode · 54335b1f
    Steven Whitehouse 提交于
    This means that after the initial allocation for any inode, the
    last used resource group is cached in the inode for future use.
    This drastically reduces the number of lookups of resource
    groups in the common case, and this the contention on that
    data structure.
    
    The allocation algorithm is the same as previously, except that we
    always check to see if the goal block is within the cached rgrp
    first before going to the rbtree to look one up.
    Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
    54335b1f
file.c 27.3 KB