• Omar Sandoval's avatar
    xfs: invert the realtime summary cache · e23aaf45
    Omar Sandoval authored
    In commit 355e3532 ("xfs: cache minimum realtime summary level"), I
    added a cache of the minimum level of the realtime summary that has any
    free extents. However, it turns out that the _maximum_ level is more
    useful for upcoming optimizations, and basically equivalent for the
    existing usage. So, let's change the meaning of the cache to be the
    maximum level + 1, or 0 if there are no free extents.
    
    For example, if the cache contains:
    
    {0, 4}
    
    then there are no free extents starting in realtime bitmap block 0, and
    there are no free extents larger than or equal to 2^4 blocks starting in
    realtime bitmap block 1. The cache is a loose upper bound, so there may
    or may not be free extents smaller than 2^4 blocks in realtime bitmap
    block 1.
    Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    e23aaf45
xfs_mount.h 20.8 KB