]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Rename rs_{free -> requested} and rd_{reserved -> requested}
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 22 Oct 2020 18:34:29 +0000 (20:34 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 17 Feb 2021 18:26:06 +0000 (19:26 +0100)
commita4a7c98c6325476abf5bc0597302a0772a500cbf
treed410e6f7fdb7fa8e4b9d20b9be0af15aabd26c0a
parent693c28f1fd482d5369c80cf01e0a6f9a2730da53
gfs2: Rename rs_{free -> requested} and rd_{reserved -> requested}

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: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/trace_gfs2.h