]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/swapfile.c: tmp is always smaller than max
authorWei Yang <richard.weiyang@gmail.com>
Tue, 2 Jun 2020 04:49:04 +0000 (21:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Jun 2020 17:59:09 +0000 (10:59 -0700)
commitfdff1debb9650ea43617487500f48168ce432cb7
treef79d1c59b4cc314fa8f4e406d81960c4279c3b8c
parent0fd0e19e4d0e9c84117584783535a57ec3ae98c6
mm/swapfile.c: tmp is always smaller than max

If tmp is bigger or equal to max, we would jump to new_cluster.

Return true directly.

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-2-richard.weiyang@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c