diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2020-06-02 06:49:04 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-02 19:59:09 +0200 |
commit | fdff1debb9650ea43617487500f48168ce432cb7 (patch) | |
tree | f79d1c59b4cc314fa8f4e406d81960c4279c3b8c /fs | |
parent | mm/swapfile.c: found_free could be represented by (tmp < max) (diff) | |
download | linux-fdff1debb9650ea43617487500f48168ce432cb7.tar.xz linux-fdff1debb9650ea43617487500f48168ce432cb7.zip |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions