diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-07-06 14:51:00 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-28 16:24:13 +0200 |
| commit | 461125e8f46c32b220fac9656ef279e1e5abf740 (patch) | |
| tree | c9346673c921aa6f8070afb56a328ff3aff68ee8 /tools | |
| parent | b23afb4a5fd2ebcf26a8b532ed1e3eb43c5341e5 (diff) | |
| download | linux-461125e8f46c32b220fac9656ef279e1e5abf740.tar.gz linux-461125e8f46c32b220fac9656ef279e1e5abf740.tar.bz2 linux-461125e8f46c32b220fac9656ef279e1e5abf740.zip | |
XArray: Add calls to might_alloc()
[ Upstream commit 1dd685c414a7b9fdb3d23aca3aedae84f0b998ae ]
Catch bogus GFP flags deterministically, instead of occasionally
when we actually have to allocate memory.
Reported-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Stable-dep-of: 99765233ab42 ("NFS: Fixup allocation flags for nfsiod's __GFP_NORETRY")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/include/linux/sched/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/linux/sched/mm.h b/tools/include/linux/sched/mm.h index c8d9f19c1f35..967294b8edcf 100644 --- a/tools/include/linux/sched/mm.h +++ b/tools/include/linux/sched/mm.h @@ -1,4 +1,6 @@ #ifndef _TOOLS_PERF_LINUX_SCHED_MM_H #define _TOOLS_PERF_LINUX_SCHED_MM_H +#define might_alloc(gfp) do { } while (0) + #endif /* _TOOLS_PERF_LINUX_SCHED_MM_H */ |
