gfs2: Use gfs2_holder_initialized for jindex
authorBob Peterson <rpeterso@redhat.com>
Mon, 10 Apr 2023 18:33:41 +0000 (14:33 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 18 Apr 2023 12:46:16 +0000 (14:46 +0200)
commit130cf5269cd267a9bf179017666f454d82bc13ef
tree8295a7f2eace65d0aff160aaca584a5f54dd0e24
parent7d1b37787fe3997b9612a8ba6766580f44e23796
gfs2: Use gfs2_holder_initialized for jindex

Before this patch function init_journal() used a local variable jindex to
keep track of whether it needed to dequeue the jindex holder when errors
were found. It also uselessly set the variable just before returning from
the function. This patch simplifies the code by eliminatinng the local
variable in favor of using function gfs2_holder_initialized.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/ops_fstype.c