diff options
author | Wei Yang <[email protected]> | 2020-06-01 21:49:13 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-06-02 10:59:09 -0700 |
commit | 4b4bb6bb451c8b0c1cbc38fa20a89a3988aa4e0b (patch) | |
tree | 50ee88769d5f3e696f644181cf67fbc7e347e245 /tools/perf/scripts/python/syscall-counts.py | |
parent | ed43af10975eef7e21abbb81297d9735448ba4fa (diff) |
mm/swapfile.c: classify SWAP_MAP_XXX to make it more readable
swap_info_struct->swap_map[] encodes some flag and count. And to
do some condition check, it also introduces some special values.
Currently those macros are defined with some magic order, which makes
audience hard to understand the exact meaning.
This patch split those macros into three categories:
flag
special value for first swap_map
special value for continued swap_map
May this help audiences a little.
[[email protected]: tweak capitalization in comments]
Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions