Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vmalloc: update __vmalloc_node_noprof() documentation

The kernel-doc for __vmalloc_node_noprof() incorrectly states that
__GFP_NOFAIL reclaim modifier is not supported. In fact it has been
supported since commit 9376130c390a ("mm/vmalloc: add support for
__GFP_NOFAIL").

To avoid duplication and future drift, point this helper's doc to
__vmalloc_node_range_noprof() for details and the full description.

Link: https://lkml.kernel.org/r/20251013174222.90123-1-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Uladzislau Rezki (Sony) and committed by
Andrew Morton
8cb290dd a739e6b5

+2 -5
+2 -5
mm/vmalloc.c
··· 4034 4034 * Allocate enough pages to cover @size from the page level allocator with 4035 4035 * @gfp_mask flags. Map them into contiguous kernel virtual space. 4036 4036 * 4037 - * Reclaim modifiers in @gfp_mask - __GFP_NORETRY, __GFP_RETRY_MAYFAIL 4038 - * and __GFP_NOFAIL are not supported 4039 - * 4040 - * Any use of gfp flags outside of GFP_KERNEL should be consulted 4041 - * with mm people. 4037 + * Semantics of @gfp_mask(including reclaim/retry modifiers such as 4038 + * __GFP_NOFAIL) are the same as in __vmalloc_node_range_noprof(). 4042 4039 * 4043 4040 * Return: pointer to the allocated memory or %NULL on error 4044 4041 */