gfs2: eliminate tr_num_revoke_rm
authorBob Peterson <rpeterso@redhat.com>
Tue, 26 Mar 2019 19:51:48 +0000 (13:51 -0600)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 27 Jun 2019 19:03:53 +0000 (21:03 +0200)
commite955537e3262de8e56f070b13817f525f472fa00
treed32fa4ef25a5a0da2ddebe93b3ee2b743b37e838
parent5b3a9f348bc58f0e13cebcf3e583c7d2f2499d6a
gfs2: eliminate tr_num_revoke_rm

For its journal processing, gfs2 kept track of the number of buffers
added and removed on a per-transaction basis. These values are used
to calculate space needed in the journal. But while these calculations
make sense for the number of buffers, they make no sense for revokes.
Revokes are managed in their own list, linked from the superblock.
So it's entirely unnecessary to keep separate per-transaction counts
for revokes added and removed. A single count will do the same job.
Therefore, this patch combines the transaction revokes into a single
count.

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