xfs: fix xfs_log_done interface
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Jun 2015 03:48:20 +0000 (13:48 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 4 Jun 2015 03:48:20 +0000 (13:48 +1000)
Instead of the confusing flags argument pass a boolean flag to indicate if
we want to release or regrant a log reservation.

Also ensure that xfs_log_done always drop the reference on the log ticket,
to both simplify the code and make the logic in xfs_trans_roll easier
to understand.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_trans.c

Simple merge
Simple merge
Simple merge
Simple merge