]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: vrealloc: properly document __GFP_ZERO behavior
authorDanilo Krummrich <dakr@kernel.org>
Tue, 30 Jul 2024 18:49:43 +0000 (20:49 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:22 +0000 (17:52 -0700)
commitf4ea9362930131faa98dc544ece0386925c98527
treed8dc0e4b682e83384467659ed9abf30925011a10
parentff4675c58f8cbbb3c2be7512466105d764224055
mm: vrealloc: properly document __GFP_ZERO behavior

Properly document that if __GFP_ZERO logic is requested, callers must
ensure that, starting with the initial memory allocation, every subsequent
call to this API for the same memory allocation is flagged with
__GFP_ZERO.  Otherwise, it is possible that __GFP_ZERO is not fully
honored by this API.

Link: https://lkml.kernel.org/r/20240730185049.6244-4-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c