gfs2: Don't search for unreserved space twice
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 12 Oct 2020 15:23:50 +0000 (17:23 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 17 Feb 2021 18:26:05 +0000 (19:26 +0100)
commitb2598965dc84bbcf8dd54accc80f60820e5d4965
tree924818afa6e92e27cbb53c531715160cf702e895
parent3d39fcd16d885ebb0d9a2e345accb0e5ae13fed9
gfs2: Don't search for unreserved space twice

If gfs2_inplace_reserve has chosen a resource group but it couldn't make a
reservation there, there are too many other reservations in that resource
group.  In that case, don't even try to respect existing reservations in
gfs2_alloc_blocks.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/rgrp.c