xfs: remove unused btree cursor bc_private.a.dfops field
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:17 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:17 +0000 (22:26 -0700)
commited7ef8e55c6f24ae4347b5bda89e00af475ebc89
treef24a68e437dd6898b35d92b3fbaca03421f39913
parent42b394a92562b464e9ef81954ca93930c037a51b
xfs: remove unused btree cursor bc_private.a.dfops field

The xfs_btree_cur.bc_private.a.dfops field is only ever initialized
by the refcountbt cursor init function. The only caller of that
function with a non-NULL dfops is from deferred completion context,
which already has attached to ->t_dfops.

In addition to that, the only actual reference of a.dfops is the
cursor duplication function, which means the field is effectively
unused.

Remove the dfops field from the bc_private.a union. Any future users
can acquire the dfops from the transaction. This patch does not
change behavior.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_refcount_btree.h
fs/xfs/scrub/common.c
fs/xfs/xfs_fsmap.c
fs/xfs/xfs_reflink.c