linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] madvise.2: MADV_FREE clarify swapless behavior
@ 2018-11-29 18:10 mhocko
  2018-12-01  8:54 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: mhocko @ 2018-11-29 18:10 UTC (permalink / raw)
  To: Michael Kerrisk
  Cc: linux-mm, Niklas Hambüchen, Shaohua Li, linux-man, Michal Hocko

From: Michal Hocko <mhocko@suse.com>

Since 93e06c7a6453 ("mm: enable MADV_FREE for swapless system") we
handle MADV_FREE on a swapless system the same way as with the swap
available. Clarify that fact in the man page.

Reported-by: Niklas Hambüchen <mail@nh2.me>
---
 man2/madvise.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/madvise.2 b/man2/madvise.2
index eb82a57a1cf5..d9135a05a1c2 100644
--- a/man2/madvise.2
+++ b/man2/madvise.2
@@ -403,7 +403,7 @@ The
 operation
 can be applied only to private anonymous pages (see
 .BR mmap (2)).
-On a swapless system, freeing pages in a given range happens instantly,
+Prior to 4.12 on a swapless system, freeing pages in a given range happens instantly,
 regardless of memory pressure.
 .TP
 .BR MADV_WIPEONFORK " (since Linux 4.14)"
-- 
2.19.1

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

end of thread, other threads:[~2018-12-01  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 18:10 [PATCH] madvise.2: MADV_FREE clarify swapless behavior mhocko
2018-12-01  8:54 ` Michael Kerrisk (man-pages)

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