xfs: add a flag to release log items on commit
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:32 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:32 +0000 (19:27 -0700)
commit9ce632a28a41bd9aeeaa3913d95b23648a82c2ee
treebe33e14549bbef071ce6b0d23f45012a6876d437
parentddf92053e45c0e07dcb031b56512d52f98cde517
xfs: add a flag to release log items on commit

We have various items that are released from ->iop_comitting.  Add a
flag to just call ->iop_release from the commit path to avoid tons
of boilerplate code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_icreate_item.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h