]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: make gfs2_ail1_empty_one return the count of active items
authorBob Peterson <rpeterso@redhat.com>
Tue, 18 Aug 2020 13:05:14 +0000 (08:05 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 15 Oct 2020 12:29:03 +0000 (14:29 +0200)
commite8f13d14dc67b5072febc6adb3f02149c608176b
treeffcdb2c19ef0e236eb58672f830fa56bb3bcbb9c
parent8bcc0f08d11341ce2a14146400b8c6a56718d13a
gfs2: make gfs2_ail1_empty_one return the count of active items

This patch is one baby step toward simplifying the journal management.
It simply changes function gfs2_ail1_empty_one from a void to an int and
makes it return a count of active items. This allows the caller to check
the return code rather than list_empty on the tr_ail1_list. This way
we can, in a later patch, combine transaction ail1 and ail2 lists.

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