OSDN Git Service

xfs: factor out a xfs_defer_create_intent helper
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Apr 2020 19:52:20 +0000 (12:52 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 May 2020 16:03:16 +0000 (09:03 -0700)
commite046e949486ec92d83b2ccdf0e7e9144f74ef028
treeaa4eeb9d06c00e516df58aa1cf3028833d52c561
parentfd9cbe51215198ccffa64169c98eae35b0916088
xfs: factor out a xfs_defer_create_intent helper

Create a helper that encapsulates the whole logic to create a defer
intent.  This reorders some of the work that was done, but none of
that has an affect on the operation as only fields that don't directly
interact are affected.

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