]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swapfile.c: use prandom_u32_max()
authorHuang Ying <ying.huang@intel.com>
Tue, 2 Jun 2020 04:49:19 +0000 (21:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Jun 2020 17:59:09 +0000 (10:59 -0700)
commitb560d2e3703c8a892c6182cb50304262e2f585c2
tree7a25eba3fee1b17f1f26c359638cbcb3e0f40a04
parent9a18310a7bb4740a29f76b4fb868295a83e681c5
mm/swapfile.c: use prandom_u32_max()

To improve the code readability and take advantage of the common
implementation.

Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Link: http://lkml.kernel.org/r/20200512081013.520201-1-ying.huang@intel.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c