Christoph Hellwig 253f4911f2 xfs: better xfs_trans_alloc interface
Merge xfs_trans_reserve and xfs_trans_alloc into a single function call
that returns a transaction with all the required log and block reservations,
and which allows passing transaction flags directly to avoid the cumbersome
_xfs_trans_alloc interface.

While we're at it we also get rid of the transaction type argument that has
been superflous since we stopped supporting the non-CIL logging mode.  The
guts of it will be removed in another patch.

[dchinner: fixed transaction leak in error path in xfs_setattr_nonsize]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2016-04-06 09:19:55 +10:00
..
2014-06-25 14:57:36 +10:00
2014-06-25 14:57:36 +10:00
2014-06-25 14:57:36 +10:00
2014-06-25 14:57:36 +10:00
2014-06-25 14:57:36 +10:00
2014-06-25 14:57:36 +10:00
2016-02-09 16:54:58 +11:00
2016-02-09 16:54:58 +11:00
2016-02-09 16:54:58 +11:00
2014-06-25 14:57:36 +10:00
2016-04-06 09:19:55 +10:00
2015-01-09 10:46:31 +11:00