summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_trans_refcount.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-12-12 19:46:22 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2018-12-12 19:47:16 +0300
commit02b100fb83f9b0f8719deef6c4ed973b4d9ce00c (patch)
tree7851231aa2e3edf3865cb806d654bc07e3ab94aa /fs/xfs/xfs_trans_refcount.c
parentbc9f2b7c8a732d896753709cc9d495780ba7e9f9 (diff)
downloadlinux-02b100fb83f9b0f8719deef6c4ed973b4d9ce00c.tar.xz
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.c1
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(
}
const struct xfs_defer_op_type xfs_refcount_update_defer_type = {
- .type = XFS_DEFER_OPS_TYPE_REFCOUNT,
.max_items = XFS_CUI_MAX_FAST_EXTENTS,
.diff_items = xfs_refcount_update_diff_items,
.create_intent = xfs_refcount_update_create_intent,