GFS2: Move log buffer accounting to transaction
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Feb 2014 21:55:33 +0000 (21:55 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Feb 2014 19:49:12 +0000 (19:49 +0000)
commit022ef4feed0c648aeb72d0c8ad06d266de08f525
tree03fd8c0fe847338bcf2772a469c9eaa1853d8a9d
parentd69a3c6561362a53d1be908ca343d899161d602c
GFS2: Move log buffer accounting to transaction

Now we have a master transaction into which other transactions
are merged, the accounting can be done using this master
transaction. We no longer require the superblock fields which
were being used for this function.

In addition, this allows for a clean up in calc_reserved()
making it rather easier understand. Also, by reducing the
number of variables used to track the buffers being added
and removed from the journal, a number of error checks are
now no longer required.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/log.c
fs/gfs2/lops.c
fs/gfs2/meta_io.c
fs/gfs2/trans.c