OSDN Git Service

gfs2: journal flush threshold fixes and cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 11 Aug 2023 14:00:10 +0000 (16:00 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:16 +0000 (15:58 +0200)
commitdb77789bae7e33b458220110f189f2381f19362b
tree52f6aa50738e5b8aeaac0c3ce411222eae3c03a4
parentb6b8f72a11b9d0d7badc7b51030f7fecf695fd79
gfs2: journal flush threshold fixes and cleanup

Commit f07b35202148 ("GFS2: Made logd daemon take into account log
demand") changed gfs2_ail_flush_reqd() and gfs2_jrnl_flush_reqd() to
take sd_log_blks_needed into account, but the checks in
gfs2_log_commit() were not updated correspondingly.

Once that is fixed, gfs2_jrnl_flush_reqd() and gfs2_ail_flush_reqd() can
be used in gfs2_log_commit().  Make those two helpers available to
gfs2_log_commit() by defining them above gfs2_log_commit().

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c