gfs2: Fix marking bitmaps non-full
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 27 Sep 2018 14:30:25 +0000 (15:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:13:17 +0000 (09:13 +0100)
commit2e3be85994be58dca05c0bf2a26b50d1c76f1f8e
tree1d65a5164b59f2e83e4948982887cf5e1c600d42
parent453ca166d3209d4e48fa3a8742c3e871ac8aa18f
gfs2: Fix marking bitmaps non-full

[ Upstream commit ec23df2b0cf3e1620f5db77972b7fb735f267eff ]

Reservations in gfs can span multiple gfs2_bitmaps (but they won't span
multiple resource groups).  When removing a reservation, we want to
clear the GBF_FULL flags of all involved gfs2_bitmaps, not just that of
the first bitmap.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/rgrp.c