Searched hist:ea0ffd0c08d0fef1f6e93eb07badbeeabf6b43d6 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/mm/ |
H A D | swap.c | diff 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 D | sysctl.c | diff 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 D | mm.h | diff 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>
|