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_refcount.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_refcount.c')
-rw-r--r-- | fs/xfs/xfs_trans_refcount.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans_refcount.c b/fs/xfs/xfs_trans_refcount.c index 116c040d54bd..6c947ff4faf6 100644 --- a/fs/xfs/xfs_trans_refcount.c +++ b/fs/xfs/xfs_trans_refcount.c | |||
@@ -229,7 +229,6 @@ xfs_refcount_update_cancel_item( | |||
229 | } | 229 | } |
230 | 230 | ||
231 | const struct xfs_defer_op_type xfs_refcount_update_defer_type = { | 231 | const struct xfs_defer_op_type xfs_refcount_update_defer_type = { |
232 | .type = XFS_DEFER_OPS_TYPE_REFCOUNT, | ||
233 | .max_items = XFS_CUI_MAX_FAST_EXTENTS, | 232 | .max_items = XFS_CUI_MAX_FAST_EXTENTS, |
234 | .diff_items = xfs_refcount_update_diff_items, | 233 | .diff_items = xfs_refcount_update_diff_items, |
235 | .create_intent = xfs_refcount_update_create_intent, | 234 | .create_intent = xfs_refcount_update_create_intent, |