Home
last modified time | relevance | path

Searched hist:ea0ffd0c08d0fef1f6e93eb07badbeeabf6b43d6 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/mm/
H A Dswap.cdiff ea0ffd0c08d0fef1f6e93eb07badbeeabf6b43d6 Sun Oct 23 11:25:33 CDT 2022 Kairui Song <kasong@tencent.com> swap: add a limit for readahead page-cluster value

Currenty there is no upper limit for /proc/sys/vm/page-cluster, and it's a
bit shift value, so it could result in overflow of the 32-bit integer.
Add a reasonable upper limit for it, read-in at most 2**31 pages, which is
a large enough value for readahead.

Link: https://lkml.kernel.org/r/20221023162533.81561-1-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
/openbmc/linux/kernel/
H A Dsysctl.cdiff ea0ffd0c08d0fef1f6e93eb07badbeeabf6b43d6 Sun Oct 23 11:25:33 CDT 2022 Kairui Song <kasong@tencent.com> swap: add a limit for readahead page-cluster value

Currenty there is no upper limit for /proc/sys/vm/page-cluster, and it's a
bit shift value, so it could result in overflow of the 32-bit integer.
Add a reasonable upper limit for it, read-in at most 2**31 pages, which is
a large enough value for readahead.

Link: https://lkml.kernel.org/r/20221023162533.81561-1-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
/openbmc/linux/include/linux/
H A Dmm.hdiff ea0ffd0c08d0fef1f6e93eb07badbeeabf6b43d6 Sun Oct 23 11:25:33 CDT 2022 Kairui Song <kasong@tencent.com> swap: add a limit for readahead page-cluster value

Currenty there is no upper limit for /proc/sys/vm/page-cluster, and it's a
bit shift value, so it could result in overflow of the 32-bit integer.
Add a reasonable upper limit for it, read-in at most 2**31 pages, which is
a large enough value for readahead.

Link: https://lkml.kernel.org/r/20221023162533.81561-1-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>