mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 01:15:16 +07:00
75f296d93b
Convert all allocations that used a NOTRACK flag to stop using it. Link: http://lkml.kernel.org/r/20171007030159.22241-3-alexander.levin@verizon.com Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Cc: Alexander Potapenko <glider@google.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Tim Hansen <devtimhansen@gmail.com> Cc: Vegard Nossum <vegardno@ifi.uio.no> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
30 lines
620 B
C
30 lines
620 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_PGALLOC_H
|
|
#define _ASM_POWERPC_PGALLOC_H
|
|
|
|
#include <linux/mm.h>
|
|
|
|
#ifndef MODULE
|
|
static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp)
|
|
{
|
|
if (unlikely(mm == &init_mm))
|
|
return gfp;
|
|
return gfp | __GFP_ACCOUNT;
|
|
}
|
|
#else /* !MODULE */
|
|
static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp)
|
|
{
|
|
return gfp | __GFP_ACCOUNT;
|
|
}
|
|
#endif /* MODULE */
|
|
|
|
#define PGALLOC_GFP (GFP_KERNEL | __GFP_ZERO)
|
|
|
|
#ifdef CONFIG_PPC_BOOK3S
|
|
#include <asm/book3s/pgalloc.h>
|
|
#else
|
|
#include <asm/nohash/pgalloc.h>
|
|
#endif
|
|
|
|
#endif /* _ASM_POWERPC_PGALLOC_H */
|