diff options
| author | Alexei Starovoitov <[email protected]> | 2025-05-17 00:34:46 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-22 21:55:37 +0000 |
| commit | 2aad4edf6e1018b28b7000faec56b7b6e585c8e1 (patch) | |
| tree | 1e3552563bc56fc061b6d53db3192cbe2a08bba3 /rust/helpers/helpers.c | |
| parent | selftests/mm: deduplicate second mmap() of 5*PAGE_SIZE at base (diff) | |
| download | kernel-2aad4edf6e1018b28b7000faec56b7b6e585c8e1.tar.gz kernel-2aad4edf6e1018b28b7000faec56b7b6e585c8e1.zip | |
mm: rename try_alloc_pages() to alloc_pages_nolock()
The "try_" prefix is confusing, since it made people believe that
try_alloc_pages() is analogous to spin_trylock() and NULL return means
EAGAIN. This is not the case. If it returns NULL there is no reason to
call it again. It will most likely return NULL again. Hence rename it to
alloc_pages_nolock() to make it symmetrical to free_pages_nolock() and
document that NULL means ENOMEM.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Acked-by: Harry Yoo <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Cc: Kumar Kartikeya Dwivedi <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Steven Rostedt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
