OSDN Git Service

xfs: turn dfp_done into a xfs_log_item
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Apr 2020 19:52:22 +0000 (12:52 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 May 2020 16:03:17 +0000 (09:03 -0700)
commitf09d167c20332ad1298ff82a6f538b4c7ea3fe1b
treed864596e8ce60ba9f415de7381ee141abe57f2ff
parentbb47d79750f1a68a75d4c7defc2da934ba31de14
xfs: turn dfp_done into a xfs_log_item

All defer op instance place their own extension of the log item into
the dfp_done field.  Replace that with a xfs_log_item to improve type
safety and make the code easier to follow.

Also use the opportunity to improve the ->finish_item calling conventions
to place the done log item as the higher level structure before the
list_entry used for the individual items.

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/libxfs/xfs_defer.c
fs/xfs/libxfs/xfs_defer.h
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c