]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
mm, doc: update read_ahead_kb for MADV_HUGEPAGE
authorYafang Shao <laoar.shao@gmail.com>
Wed, 13 Nov 2024 15:07:11 +0000 (23:07 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 15 Nov 2024 06:43:48 +0000 (22:43 -0800)
MADV_HUGEPAGE is a new addition to readahead with behavior distinct from
normal pages.  To prevent confusion, we should update the documentation
accordingly.

Link: https://lkml.kernel.org/r/20241113150711.1685-1-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/ABI/stable/sysfs-block

index cea8856f798dde87a61f0d160160460ce6553133..7a820a7d53aabf1450b88c11eb44b098c87c43db 100644 (file)
@@ -594,6 +594,9 @@ Description:
                [RW] Maximum number of kilobytes to read-ahead for filesystems
                on this block device.
 
+               For MADV_HUGEPAGE, the readahead size may exceed this setting
+               since its granularity is based on the hugepage size.
+
 
 What:          /sys/block/<disk>/queue/rotational
 Date:          January 2009