OSDN Git Service

xfs: don't use xfs_trans_free_items in the commit path
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:31 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:31 +0000 (19:27 -0700)
commit195cd83d1b8835a2f344ed411b46bba48ddfcc49
tree0c629e8dc2052dedaf44be1849d4d9ef4aad18b3
parent8e4b20ea83c27501352316757ccf08e897018a26
xfs: don't use xfs_trans_free_items in the commit path

While commiting items looks very similar to freeing them on error it is
a different operation, and they will diverge a bit soon.

Split out the commit case from xfs_trans_free_items, inline it into
xfs_log_commit_cil and give it a separate trace point.

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_log_cil.c
fs/xfs/xfs_trace.h
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans_priv.h