]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: kvrealloc: properly document __GFP_ZERO behavior
authorDanilo Krummrich <dakr@kernel.org>
Tue, 30 Jul 2024 18:49:44 +0000 (20:49 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:23 +0000 (17:52 -0700)
commitd6e6d712be77692653c2c89b0c720497651a6e42
tree23b7b01985e9b8499e0ce0395252992bd2cab703
parent9ec3e87d94f8efd64f8181e44f6c3aec06557ee7
mm: kvrealloc: 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-5-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/util.c