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>
Thu, 28 Nov 2019 17:25:35 +0000 (18:25 +0100)
commitb133f7fa7a33d8dd4bea59e14cc86fe271f0f49f
tree339d39844470b1d88f2bb80e6670198248664dcc
parentee49574a110592204b7565362ac2066f27bdb1d3
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