]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerBob Peterson <rpeterso@redhat.com>
Tue, 18 Dec 2018 16:49:02 +0000 (10:49 -0600)
commitf4224c0bf37d153b1a466353035ddfb37bbf8787
treec742bb099d4e61d8335d50482e17e460ed5aa139
parent73f1e9e9f0a056b1340bc8fa84b669b3c2da8059
gfs2: take jdata unstuff into account in do_grow

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>
fs/gfs2/bmap.c