diff options
| author | Hubert Jasudowicz <[email protected]> | 2021-02-26 01:21:07 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-02-26 17:41:03 +0000 |
| commit | e1e014115dfd48ab3e3691ce46f9484ce12e67d4 (patch) | |
| tree | 985f8c2183614c6e28849299ea3ec9c4d9616a87 /lib/genalloc.c | |
| parent | groups: use flexible-array member in struct group_info (diff) | |
| download | kernel-e1e014115dfd48ab3e3691ce46f9484ce12e67d4.tar.gz kernel-e1e014115dfd48ab3e3691ce46f9484ce12e67d4.zip | |
groups: simplify struct group_info allocation
Combine kmalloc and vmalloc into a single call. Use struct_size macro
instead of direct size calculation.
Link: https://lkml.kernel.org/r/ba9ba5beea9a44b7196c41a0d9528abd5f20dd2e.1611620846.git.hubert.jasudowicz@gmail.com
Signed-off-by: Hubert Jasudowicz <[email protected]>
Cc: Gao Xiang <[email protected]>
Cc: Micah Morton <[email protected]>
Cc: Michael Kelley <[email protected]>
Cc: "Peter Zijlstra (Intel)" <[email protected]>
Cc: Thomas Cedeno <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions
