diff options
| author | Miaohe Lin <[email protected]> | 2020-12-14 19:06:07 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-12-15 12:13:39 -0800 |
| commit | 661c7566438119cbf490b0b359ee69a0f9dbaf9a (patch) | |
| tree | 9940b14d353b301aeed64667987a63ce37c476e2 /tools/perf/scripts/python/flamegraph.py | |
| parent | 9d9a03340309cb8065503cfa3c5c5fc8b7670230 (diff) | |
mm/swapfile.c: use memset to fill the swap_map with SWAP_HAS_CACHE
We could use helper memset to fill the swap_map with SWAP_HAS_CACHE instead
of a direct loop here to simplify the code. Also we can remove the local
variable i and map this way.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions