mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
kmem: don't add __GFP_COMP for KM_VMEM allocations
It hasn't been necessary since Linux 3.13 (torvalds/linux@a57a49887e), and since 6.19 the kernel warns if you use it. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #18053
This commit is contained in:
@@ -66,7 +66,10 @@ void *spl_kvmalloc(size_t size, gfp_t flags);
|
||||
static inline gfp_t
|
||||
kmem_flags_convert(int flags)
|
||||
{
|
||||
gfp_t lflags = __GFP_NOWARN | __GFP_COMP;
|
||||
gfp_t lflags = __GFP_NOWARN;
|
||||
|
||||
if (!(flags & KM_VMEM))
|
||||
lflags |= __GFP_COMP;
|
||||
|
||||
if (flags & KM_NOSLEEP) {
|
||||
lflags |= GFP_ATOMIC | __GFP_NORETRY;
|
||||
|
||||
Reference in New Issue
Block a user