diff options
| author | Miaohe Lin <[email protected]> | 2021-06-30 18:50:30 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-06-30 20:47:28 -0700 |
| commit | e891f60e28c3e90e2589a7d2147ae192dca11245 (patch) | |
| tree | 9ad0872bc35d880712d812e1d01a5b3f996ee8e6 /tools/perf/scripts/python | |
| parent | 014284a0815f6b9a6e10c8d575d37a5357ce033d (diff) | |
mm/z3fold: remove magic number in z3fold_create_pool()
It's meaningless to pass a magic number 2 to __alloc_percpu() as there is
a minimum alignment size of PCPU_MIN_ALLOC_SIZE (> 2) in it. Also there
is no special alignment requirement for unbuddied. So we could replace
this magic number with nature alignment, i.e. __alignof__(struct
list_head), to improve readability.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Vitaly Wool <[email protected]>
Cc: Hillf Danton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions