diff options
| author | Pavel Tatashin <[email protected]> | 2017-07-06 15:39:08 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-07-06 16:24:33 -0700 |
| commit | 3749a8f008eac3355a9e50b366ba08317a7e9cf8 (patch) | |
| tree | 448dc6eaf19a3838cdc2ab497c529729168def2b /net/lapb/lapb_subr.c | |
| parent | f7fb506fef6e8701bdb0ea7bb4f01148efd7416c (diff) | |
mm: zero hash tables in allocator
Add a new flag HASH_ZERO which when provided grantees that the hash
table that is returned by alloc_large_system_hash() is zeroed. In most
cases that is what is needed by the caller. Use page level allocator's
__GFP_ZERO flags to zero the memory. It is using memset() which is
efficient method to zero memory and is optimized for most platforms.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Pavel Tatashin <[email protected]>
Reviewed-by: Babu Moger <[email protected]>
Cc: David Miller <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions