diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-12 11:46:22 -0500 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-12 11:47:16 -0500 |
commit | 02b100fb83f9b0f8719deef6c4ed973b4d9ce00c (patch) | |
tree | 7851231aa2e3edf3865cb806d654bc07e3ab94aa /fs/xfs/xfs_trans_extfree.c | |
parent | bc9f2b7c8a732d896753709cc9d495780ba7e9f9 (diff) |
xfs: streamline defer op type handling
There's no need to bundle a pointer to the defer op type into the defer
op control structure. Instead, store the defer op type enum, which
enables us to shorten some of the lines.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_trans_extfree.c')
-rw-r--r-- | fs/xfs/xfs_trans_extfree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_trans_extfree.c b/fs/xfs/xfs_trans_extfree.c index 1872962aa470..73b11ed6795e 100644 --- a/fs/xfs/xfs_trans_extfree.c +++ b/fs/xfs/xfs_trans_extfree.c | |||
@@ -208,7 +208,6 @@ xfs_extent_free_cancel_item( | |||
208 | } | 208 | } |
209 | 209 | ||
210 | const struct xfs_defer_op_type xfs_extent_free_defer_type = { | 210 | const struct xfs_defer_op_type xfs_extent_free_defer_type = { |
211 | .type = XFS_DEFER_OPS_TYPE_FREE, | ||
212 | .max_items = XFS_EFI_MAX_FAST_EXTENTS, | 211 | .max_items = XFS_EFI_MAX_FAST_EXTENTS, |
213 | .diff_items = xfs_extent_free_diff_items, | 212 | .diff_items = xfs_extent_free_diff_items, |
214 | .create_intent = xfs_extent_free_create_intent, | 213 | .create_intent = xfs_extent_free_create_intent, |
@@ -276,7 +275,6 @@ xfs_agfl_free_finish_item( | |||
276 | 275 | ||
277 | /* sub-type with special handling for AGFL deferred frees */ | 276 | /* sub-type with special handling for AGFL deferred frees */ |
278 | const struct xfs_defer_op_type xfs_agfl_free_defer_type = { | 277 | const struct xfs_defer_op_type xfs_agfl_free_defer_type = { |
279 | .type = XFS_DEFER_OPS_TYPE_AGFL_FREE, | ||
280 | .max_items = XFS_EFI_MAX_FAST_EXTENTS, | 278 | .max_items = XFS_EFI_MAX_FAST_EXTENTS, |
281 | .diff_items = xfs_extent_free_diff_items, | 279 | .diff_items = xfs_extent_free_diff_items, |
282 | .create_intent = xfs_extent_free_create_intent, | 280 | .create_intent = xfs_extent_free_create_intent, |