+ tools-modifying-page-types-to-include-shared-map-counts-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: tools-modifying-page-types-to-include-shared-map-counts-fix
has been added to the -mm tree.  Its filename is
     tools-modifying-page-types-to-include-shared-map-counts-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/tools-modifying-page-types-to-include-shared-map-counts-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/tools-modifying-page-types-to-include-shared-map-counts-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Christian Hansen <chansen3@xxxxxxxxx>
Subject: tools-modifying-page-types-to-include-shared-map-counts-fix

ad documentation, tweak whitespace

Link: http://lkml.kernel.org/r/20180705181204.5529-1-chansen3@xxxxxxxxx
Signed-off-by: Christian Hansen <chansen3@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


diff -puN Documentation/admin-guide/mm/pagemap.rst~tools-modifying-page-types-to-include-shared-map-counts-fix Documentation/admin-guide/mm/pagemap.rst
--- a/Documentation/admin-guide/mm/pagemap.rst~tools-modifying-page-types-to-include-shared-map-counts-fix
+++ a/Documentation/admin-guide/mm/pagemap.rst
@@ -44,6 +44,9 @@ There are four components to pagemap:
  * ``/proc/kpagecount``.  This file contains a 64-bit count of the number of
    times each page is mapped, indexed by PFN.
 
+The page-types tool in the tools/vm directory can be used to query the
+number of times a page is mapped.
+
  * ``/proc/kpageflags``.  This file contains a 64-bit set of flags for each
    page, indexed by PFN.
 
diff -puN tools/vm/page-types.c~tools-modifying-page-types-to-include-shared-map-counts-fix tools/vm/page-types.c
--- a/tools/vm/page-types.c~tools-modifying-page-types-to-include-shared-map-counts-fix
+++ a/tools/vm/page-types.c
@@ -305,7 +305,7 @@ static unsigned long kpagecount_read(uin
 				     unsigned long index,
 				     unsigned long pages)
 {
-	return kpagecount_fd < 0 ? pages :
+	return kpagecount_fd < 0 ? pages:
 		do_u64_read(kpagecount_fd, PROC_KPAGECOUNT,
 			    buf, index, pages);
 }
_

Patches currently in -mm which might be from chansen3@xxxxxxxxx are

tools-modifying-page-types-to-include-shared-map-counts.patch
tools-modifying-page-types-to-include-shared-map-counts-fix.patch
tools-adding-support-for-idle-page-tracking-to-tool.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux