summaryrefslogtreecommitdiffstats
path: root/include/os
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-16 18:17:39 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commite6713cfd542dd9c2a2c2957cc99bd4c923211a93 (patch)
tree1cf3f17e9ef92bcd7d4d1e2925781f742d0f9715 /include/os
parent79c307def906844178a9d0d031b53cd8f83b6164 (diff)
config: remove HAVE_XATTR_(GET|SET|LIST)_HANDLER
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
Diffstat (limited to 'include/os')
-rw-r--r--include/os/linux/kernel/linux/xattr_compat.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/include/os/linux/kernel/linux/xattr_compat.h b/include/os/linux/kernel/linux/xattr_compat.h
index b3761a422..956c2b73d 100644
--- a/include/os/linux/kernel/linux/xattr_compat.h
+++ b/include/os/linux/kernel/linux/xattr_compat.h
@@ -47,15 +47,6 @@ fn(struct dentry *dentry) \
{ \
return (!!__ ## fn(dentry->d_inode, NULL, 0, NULL, 0)); \
}
-#elif defined(HAVE_XATTR_LIST_HANDLER)
-#define ZPL_XATTR_LIST_WRAPPER(fn) \
-static size_t \
-fn(const struct xattr_handler *handler, struct dentry *dentry, \
- char *list, size_t list_size, const char *name, size_t name_len) \
-{ \
- return (__ ## fn(dentry->d_inode, \
- list, list_size, name, name_len)); \
-}
#else
#error "Unsupported kernel"
#endif
@@ -74,20 +65,6 @@ fn(const struct xattr_handler *handler, struct dentry *dentry, \
return (__ ## fn(inode, name, buffer, size)); \
}
/*
- * 4.4 API change,
- * The xattr_handler->get() callback was changed to take a xattr_handler,
- * and handler_flags argument was removed and should be accessed by
- * handler->flags.
- */
-#elif defined(HAVE_XATTR_GET_HANDLER)
-#define ZPL_XATTR_GET_WRAPPER(fn) \
-static int \
-fn(const struct xattr_handler *handler, struct dentry *dentry, \
- const char *name, void *buffer, size_t size) \
-{ \
- return (__ ## fn(dentry->d_inode, name, buffer, size)); \
-}
-/*
* Android API change,
* The xattr_handler->get() callback was changed to take a dentry and inode
* and flags, because the dentry might not be attached to an inode yet.
@@ -149,21 +126,6 @@ fn(const struct xattr_handler *handler, struct dentry *dentry, \
{ \
return (__ ## fn(kcred->user_ns, inode, name, buffer, size, flags));\
}
-/*
- * 4.4 API change,
- * The xattr_handler->set() callback was changed to take a xattr_handler,
- * and handler_flags argument was removed and should be accessed by
- * handler->flags.
- */
-#elif defined(HAVE_XATTR_SET_HANDLER)
-#define ZPL_XATTR_SET_WRAPPER(fn) \
-static int \
-fn(const struct xattr_handler *handler, struct dentry *dentry, \
- const char *name, const void *buffer, size_t size, int flags) \
-{ \
- return (__ ## fn(kcred->user_ns, dentry->d_inode, name, \
- buffer, size, flags)); \
-}
#else
#error "Unsupported kernel"
#endif