linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: mhocko@kernel.org
To: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: linux-mm@kvack.org, "Niklas Hambüchen" <mail@nh2.me>,
	"Shaohua Li" <shli@fb.com>,
	linux-man@vger.kernel.org, "Michal Hocko" <mhocko@suse.com>
Subject: [PATCH] madvise.2: MADV_FREE clarify swapless behavior
Date: Thu, 29 Nov 2018 19:10:48 +0100	[thread overview]
Message-ID: <20181129181048.11010-1-mhocko@kernel.org> (raw)

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

             reply	other threads:[~2018-11-29 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-29 18:10 mhocko [this message]
2018-12-01  8:54 ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181129181048.11010-1-mhocko@kernel.org \
    --to=mhocko@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mail@nh2.me \
    --cc=mhocko@suse.com \
    --cc=mtk.manpages@gmail.com \
    --cc=shli@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox