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)
commitf78c3901074e113a04150230087f1d76033bb0a4
tree1c5bcd4b88cfd62dd370b06051c9f15f6e67e4d9
parent70393313dd0b26a6a79e2737b6dff1f1937b936d
xfs: fix xfs_log_done interface

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
This page took 0.02681 seconds and 5 git commands to generate.