mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-25 10:12:13 +03:00
linux/kmem: remove long-obsolete __GFP compat flags
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #17551
This commit is contained in:
parent
96d20d7d59
commit
1c483cf3d0
@ -127,18 +127,6 @@ spl_fstrans_check(void)
|
|||||||
return (current->flags & SPL_FSTRANS);
|
return (current->flags & SPL_FSTRANS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Kernel compatibility for GFP flags
|
|
||||||
*/
|
|
||||||
/* < 4.13 */
|
|
||||||
#ifndef __GFP_RETRY_MAYFAIL
|
|
||||||
#define __GFP_RETRY_MAYFAIL __GFP_REPEAT
|
|
||||||
#endif
|
|
||||||
/* < 4.4 */
|
|
||||||
#ifndef __GFP_RECLAIM
|
|
||||||
#define __GFP_RECLAIM __GFP_WAIT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_ATOMIC64_T
|
#ifdef HAVE_ATOMIC64_T
|
||||||
#define kmem_alloc_used_add(size) atomic64_add(size, &kmem_alloc_used)
|
#define kmem_alloc_used_add(size) atomic64_add(size, &kmem_alloc_used)
|
||||||
#define kmem_alloc_used_sub(size) atomic64_sub(size, &kmem_alloc_used)
|
#define kmem_alloc_used_sub(size) atomic64_sub(size, &kmem_alloc_used)
|
||||||
|
|||||||
@ -256,10 +256,6 @@ abd_unmark_zfs_page(struct page *page)
|
|||||||
|
|
||||||
#ifndef CONFIG_HIGHMEM
|
#ifndef CONFIG_HIGHMEM
|
||||||
|
|
||||||
#ifndef __GFP_RECLAIM
|
|
||||||
#define __GFP_RECLAIM __GFP_WAIT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The goal is to minimize fragmentation by preferentially populating ABDs
|
* The goal is to minimize fragmentation by preferentially populating ABDs
|
||||||
* with higher order compound pages from a single zone. Allocation size is
|
* with higher order compound pages from a single zone. Allocation size is
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user