aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorKairui Song <[email protected]>2022-10-24 00:25:33 +0800
committerAndrew Morton <[email protected]>2022-11-08 17:37:22 -0800
commitea0ffd0c08d0fef1f6e93eb07badbeeabf6b43d6 (patch)
tree7c51a3389015d022f9a2b98a2157e2de31216605 /include/linux/debugobjects.h
parent5033091de814ab4b5623faed2755f3064e19e2d2 (diff)
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/[email protected] Signed-off-by: Kairui Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions