OSDN Git Service

gfs2: Clean up on-stack transactions
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 29 Jan 2021 15:45:33 +0000 (16:45 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 3 Feb 2021 17:37:10 +0000 (18:37 +0100)
commitc968f5788bc91fe4f86df1a68f0d6471396b4d78
treed41b5169df48d784f6aded7065c0bd451dbd6b59
parent15e20a301ab06575482c7ab3b442a6830cec928e
gfs2: Clean up on-stack transactions

Replace the TR_ALLOCED flag by its inverse, TR_ONSTACK: that way, the flag only
needs to be set in the exceptional case of on-stack transactions.  Split off
__gfs2_trans_begin from gfs2_trans_begin and use it to replace the open-coded
version in gfs2_ail_empty_gl.

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