diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-10-05 19:39:18 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-02-17 19:26:05 +0100 |
commit | f38e998fbbb5da6a097ecd4b2700ba95eabab0c9 (patch) | |
tree | cbb56d3973d0c7a555c49efdfae0a135932bf60a /fs/gfs2/rgrp.h | |
parent | gfs2: Set GBF_FULL flags when reading resource group (diff) | |
download | linux-f38e998fbbb5da6a097ecd4b2700ba95eabab0c9.tar.xz linux-f38e998fbbb5da6a097ecd4b2700ba95eabab0c9.zip |
gfs2: Also reflect single-block allocations in rgd->rd_extfail_pt
Pass a non-NULL minext to gfs2_rbm_find even for single-block allocations. In
gfs2_rbm_find, also set rgd->rd_extfail_pt when a single-block allocation
fails in a resource group: there is no reason for treating that case
differently. In gfs2_reservation_check_and_update, only check how many free
blocks we have if more than one block is requested; we already know there's at
least one free block.
In addition, when allocating N blocks fails in gfs2_rbm_find, we need to set
rd_extfail_pt to N - 1 rather than N: rd_extfail_pt defines the biggest
allocation that might still succeed.
Finally, reset rd_extfail_pt when updating the resource group statistics in
update_rgrp_lvb, as we already do in gfs2_rgrp_bh_get.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.h')
0 files changed, 0 insertions, 0 deletions