From: Wu Fengguang Introduce a kconfig option READAHEAD_ALLOW_OVERHEADS to enable users to choose extra features that have overheads. Features with overheads will be disabled by default. Signed-off-by: Wu Fengguang Signed-off-by: Andrew Morton --- mm/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff -puN mm/Kconfig~readahead-kconfig-option-readahead_allow_overheads mm/Kconfig --- a/mm/Kconfig~readahead-kconfig-option-readahead_allow_overheads +++ a/mm/Kconfig @@ -182,10 +182,15 @@ config ADAPTIVE_READAHEAD It is known to work well for many desktops, file servers and postgresql databases. Say Y to try it out for yourself. +config READAHEAD_ALLOW_OVERHEADS + bool "Allow extra features with overheads" + default n + depends on ADAPTIVE_READAHEAD + config DEBUG_READAHEAD bool "Readahead debug and accounting" default y - depends on ADAPTIVE_READAHEAD + depends on READAHEAD_ALLOW_OVERHEADS select DEBUG_FS help This option injects extra code to dump detailed debug traces and do _