OSDN Git Service

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>
Wed, 27 Nov 2019 20:23:29 +0000 (21:23 +0100)
commitfda2d7096ddf05883f4bd93fe0e1291b407c91c8
tree339d39844470b1d88f2bb80e6670198248664dcc
parentd921c4335c899e57e88a8f88f92c2820ca59f349
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