Skip to contentSkip to conversation

mm-madvise-add-description-for-madv_wipeonfork-and-madv_keeponfork.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/madvise.c: add description for MADV_WIPEONFORK and MADV_KEEPONFORK
has been removed from the -mm tree. Its filename was
mm-madvise-add-description-for-madv_wipeonfork-and-madv_keeponfork.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: "Yang Shi" <[email protected]>
Subject: mm/madvise.c: add description for MADV_WIPEONFORK and MADV_KEEPONFORK

mm/madvise.c has a brief description about all MADV_ flags. Add a description for the newly added MADV_WIPEONFORK and MADV_KEEPONFORK.

Although man page has the similar information, but it'd better to keep the consistent with other flags.

---

 mm/madvise.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
mm/madvise.c renamed from mm/madvise.c~mm-madvise-add-description-for-madv_wipeonfork-and-madv_keeponfork +6 -1
diff -puN mm/madvise.c~mm-madvise-add-description-for-madv_wipeonfork-and-madv_keeponfork mm/madvise.c
@@ -757,6 +757,9 @@ madvise_behavior_valid(int behavior)
  *  MADV_DONTFORK - omit this area from child's address space when forking:
  *		typically, to avoid COWing pages pinned by get_user_pages().
  *  MADV_DOFORK - cancel MADV_DONTFORK: no longer omit this area when forking.
+ *  MADV_WIPEONFORK - present the child process with zero-filled memory in this
+ *              range after a fork.
+ *  MADV_KEEPONFORK - undo the effect of MADV_WIPEONFORK
  *  MADV_HWPOISON - trigger memory error handler as if the given memory range
  *		were corrupted by unrecoverable hardware memory failure.
  *  MADV_SOFT_OFFLINE - try to soft-offline the given range of memory.
@@ -777,7 +780,9 @@ madvise_behavior_valid(int behavior)
  *  zero    - success
  *  -EINVAL - start + len < 0, start is not page-aligned,
  *		"behavior" is not a valid value, or application
- *		is attempting to release locked or shared pages.
+ *		is attempting to release locked or shared pages,
+ *		or the specified address range includes file, Huge TLB,
+ *		MAP_SHARED or VMPFNMAP range.
  *  -ENOMEM - addresses in the specified range are not currently
  *		mapped, or are outside the AS of the process.
  *  -EIO    - an I/O error occurred while paging in data.

_

Patches currently in -mm which might be from [email protected] are

tools-slabinfo-add-u-option-to-show-unreclaimable-slabs-only.patch mm-slabinfo-dump-config_slabinfo.patch mm-slabinfo-dump-config_slabinfo-v11.patch mm-oom-show-unreclaimable-slab-info-when-unreclaimable-slabs-user-memory.patch mm-oom-show-unreclaimable-slab-info-when-unreclaimable-slabs-user-memory-v11.patch