summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_defer.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-04-30 12:52:22 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-05-04 09:03:17 -0700
commit3ec1b26c04d4910f37cdaad26d14b403c0240e30 (patch)
treee49ec459acdb2011bc3b83cfd93a59f9c62b4be0 /fs/xfs/libxfs/xfs_defer.c
parentf09d167c20332ad1298ff82a6f538b4c7ea3fe1b (diff)
downloadlwn-3ec1b26c04d4910f37cdaad26d14b403c0240e30.tar.gz
lwn-3ec1b26c04d4910f37cdaad26d14b403c0240e30.zip
xfs: use a xfs_btree_cur for the ->finish_cleanup state
Given how XFS is all based around btrees it doesn't make much sense to offer a totally generic state when we can just use the btree cursor. 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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_defer.c')
-rw-r--r--fs/xfs/libxfs/xfs_defer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_defer.c b/fs/xfs/libxfs/xfs_defer.c
index 5f37f42cda67..1172fbf072d8 100644
--- a/fs/xfs/libxfs/xfs_defer.c
+++ b/fs/xfs/libxfs/xfs_defer.c
@@ -361,7 +361,7 @@ xfs_defer_finish_one(
struct xfs_defer_pending *dfp)
{
const struct xfs_defer_op_type *ops = defer_op_types[dfp->dfp_type];
- void *state = NULL;
+ struct xfs_btree_cur *state = NULL;
struct list_head *li, *n;
int error;