diff options
author | 2020-06-01 21:49:01 -0700 | |
---|---|---|
committer | 2020-06-02 10:59:09 -0700 | |
commit | 0fd0e19e4d0e9c84117584783535a57ec3ae98c6 (patch) | |
tree | 3973516dc52c52970a1747598d0c504ca7a8c946 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/swapfile.c: remove the extra check in scan_swap_map_slots() (diff) | |
download | wireguard-linux-0fd0e19e4d0e9c84117584783535a57ec3ae98c6.tar.xz wireguard-linux-0fd0e19e4d0e9c84117584783535a57ec3ae98c6.zip |
mm/swapfile.c: found_free could be represented by (tmp < max)
This is not necessary to use the variable found_free to record the status.
Just check tmp and max is enough.
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: "Huang, Ying" <ying.huang@intel.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Link: http://lkml.kernel.org/r/20200421213824.8099-1-richard.weiyang@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions