• Steven Whitehouse's avatar
    GFS2: Cache the most recently used resource group in the inode · 54335b1f
    Steven Whitehouse authored
    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: default avatarSteven Whitehouse <swhiteho@redhat.com>
    54335b1f
xattr.c 32.9 KB