linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm, doc: Update read_ahead_kb for MADV_HUGEPAGE
@ 2024-11-13 15:07 Yafang Shao
  2024-11-14  4:36 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Yafang Shao @ 2024-11-13 15:07 UTC (permalink / raw)
  To: akpm, david, willy; +Cc: linux-mm, Yafang Shao

MADV_HUGEPAGE is a new addition to readahead with behavior distinct from
normal pages. To prevent confusion, we should update the documentation
accordingly.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox <willy@infradead.org>
---
 Documentation/ABI/stable/sysfs-block | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block
index cea8856f798d..7a820a7d53aa 100644
--- a/Documentation/ABI/stable/sysfs-block
+++ b/Documentation/ABI/stable/sysfs-block
@@ -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
-- 
2.43.5



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-14  6:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-13 15:07 [PATCH] mm, doc: Update read_ahead_kb for MADV_HUGEPAGE Yafang Shao
2024-11-14  4:36 ` Christoph Hellwig
2024-11-14  6:06   ` Yafang Shao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox