GFS2: Fix gfs2_replay_incr_blk for multiple journal sizes
authorBob Peterson <rpeterso@redhat.com>
Thu, 21 Jul 2016 18:02:44 +0000 (13:02 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 21 Jul 2016 18:02:44 +0000 (13:02 -0500)
commite1cb6be9e142e6cc6246f3ab2776b4d7a2b3d9f0
tree356136ccb12a6175568718e01a1a5b2628fa649c
parent44f52122a22004de9c3bae288bbc6dff3624fe9c
GFS2: Fix gfs2_replay_incr_blk for multiple journal sizes

Before this patch, if you used gfs2_jadd to add new journals of a
size smaller than the existing journals, replaying those new journals
would withdraw. That's because function gfs2_replay_incr_blk was
using the number of journal blocks (jd_block) from the superblock's
journal pointer. In other words, "My journal's max size" rather than
"the journal we're replaying's size." This patch changes the function
to use the size of the pertinent journal rather than always using the
journal we happen to be using.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/lops.c
fs/gfs2/recovery.c
fs/gfs2/recovery.h