• Andreas Gruenbacher's avatar
    gfs2: Rename rs_{free -> requested} and rd_{reserved -> requested} · 07974d2a
    Andreas Gruenbacher authored
    We keep track of what we've so far been referring to as reservations in
    rd_rstree: the nodes in that tree indicate where in a resource group we'd
    like to allocate the next couple of blocks for a particular inode.  Local
    processes take those as hints, but they may still "steal" blocks from those
    extents, so when actually allocating a block, we must double check in the
    bitmap whether that block is actually still free.  Likewise, other cluster
    nodes may "steal" such blocks as well.
    
    One of the following patches introduces resource group glock sharing, i.e.,
    sharing of an exclusively locked resource group glock among local processes to
    speed up allocations.  To make that work, we'll need to keep track of how many
    blocks we've actually reserved for each inode, so we end up with two different
    kinds of reservations.
    
    Distinguish these two kinds by referring to blocks which are reserved but may
    still be "stolen" as "requested".  This rename also makes it more obvious that
    rs_requested and rd_requested are strongly related.
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    07974d2a
rgrp.c 70.7 KB