Skip to content

Commit

Permalink
xfs: sync xfs_btree_split macros with userspace libxfs
Browse files Browse the repository at this point in the history
Sync this one last bit of discrepancy between kernel and userspace
libxfs.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
  • Loading branch information
Darrick J. Wong committed Nov 11, 2021
1 parent 29f11fc commit 4a6b35b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/xfs/libxfs/xfs_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,7 @@ __xfs_btree_split(
return error;
}

#ifdef __KERNEL__
struct xfs_btree_split_args {
struct xfs_btree_cur *cur;
int level;
Expand Down Expand Up @@ -2870,6 +2871,9 @@ xfs_btree_split(
destroy_work_on_stack(&args.work);
return args.result;
}
#else
#define xfs_btree_split __xfs_btree_split
#endif /* __KERNEL__ */


/*
Expand Down

0 comments on commit 4a6b35b

Please sign in to comment.