#include <linux/xattr.h>
#include <linux/workqueue.h>
#include <linux/blkdev.h>
+#include <linux/slab.h>
#include <libcfs/linux/linux-fs.h>
#include <lustre_patchless_compat.h>
#define xa_unlock_irq(lockp) spin_unlock_irq(lockp)
#endif
+#ifndef KMEM_CACHE_USERCOPY
+#define kmem_cache_create_usercopy(name, size, align, flags, useroffset, \
+ usersize, ctor) \
+ kmem_cache_create(name, size, align, flags, ctor)
+#endif
+
#endif /* _LUSTRE_COMPAT_H */