From: Darrick J. Wong Date: Wed, 10 Nov 2021 02:32:17 +0000 (-0800) Subject: xfs: sync xfs_btree_split macros with userspace libxfs X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4a6b35b3b3f28df81fea931dc77c4c229cbdb5b2;p=linux.git xfs: sync xfs_btree_split macros with userspace libxfs Sync this one last bit of discrepancy between kernel and userspace libxfs. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen --- diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c index b4e19aacb9dee..f18a875f51c62 100644 --- a/fs/xfs/libxfs/xfs_btree.c +++ b/fs/xfs/libxfs/xfs_btree.c @@ -2785,6 +2785,7 @@ error0: return error; } +#ifdef __KERNEL__ struct xfs_btree_split_args { struct xfs_btree_cur *cur; int level; @@ -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__ */ /*