mirror_zfs/include/os/linux
Ryan Lahfa 1e488eec60 linux/spl/kmem_cache: undefine kmem_cache_alloc before defining it
When compiling a kernel with bcachefs and zfs,
the two macros will collide, making it impossible
to have both filesystems.

It is sufficient to just undefine the macro before calling it.

On why this should be in ZFS rather than bcachefs, currently,
bcachefs is not a in-tree filesystem, but,
it has a reasonably high chance of getting included soon.

This avoids the breakage in ZFS early,
this patch may be distributed downstream in NixOS
and is already used there.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Lahfa <ryan@lahfa.xyz>
Closes #15144
2023-08-25 13:33:40 -07:00
..
kernel/linux Linux 6.5 compat: disk_check_media_change() was added 2023-07-21 16:35:12 -07:00
spl linux/spl/kmem_cache: undefine kmem_cache_alloc before defining it 2023-08-25 13:33:40 -07:00
zfs/sys linux: implement filesystem-side copy/clone functions for EL7 2023-07-26 08:46:58 -07:00
Makefile.am Add SHA2 SIMD feature tests for Linux 2023-03-02 13:52:04 -08:00