gfs2: take jdata unstuff into account in do_grow
authorBob Peterson <rpeterso@redhat.com>
Tue, 18 Dec 2018 14:29:32 +0000 (08:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:36 +0000 (15:34 +0100)
commit26804e37f58cca20b933166da4e9c7773c256aed
tree71b15ffe6b2c2b4177646800a6a6bcd237fb81e5
parent1ed7c9f45fb893877ffa7cedd7aa61beaadbb328
gfs2: take jdata unstuff into account in do_grow

[ Upstream commit bc0205612bbd4dd4026d4ba6287f5643c37366ec ]

Before this patch, function do_grow would not reserve enough journal
blocks in the transaction to unstuff jdata files while growing them.
This patch adds the logic to add one more block if the file to grow
is jdata.

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