[nacked] mm-change-meminfo-cached-calculation.patch removed from -mm tree

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

 



The patch titled
     Subject: /proc/meminfo: exclude shmem from "Cached"
has been removed from the -mm tree.  Its filename was
     mm-change-meminfo-cached-calculation.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: "Wang, Yalin" <Yalin.Wang@xxxxxxxxxxxxxx>
Subject: /proc/meminfo: exclude shmem from "Cached"

Subtract sharedram (shmem) from "Cached".  sharedram can only be swapped
into swap partitions so it should be treated as swap pages, not as cached
pages.

Signed-off-by: Yalin Wang <yalin.wang@xxxxxxxxxxxxxx>
Cc: Hugh Dickins <hughd@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/proc/meminfo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/proc/meminfo.c~mm-change-meminfo-cached-calculation fs/proc/meminfo.c
--- a/fs/proc/meminfo.c~mm-change-meminfo-cached-calculation
+++ a/fs/proc/meminfo.c
@@ -45,7 +45,7 @@ static int meminfo_proc_show(struct seq_
 	committed = percpu_counter_read_positive(&vm_committed_as);
 
 	cached = global_page_state(NR_FILE_PAGES) -
-			total_swapcache_pages() - i.bufferram;
+			total_swapcache_pages() - i.bufferram - i.sharedram;
 	if (cached < 0)
 		cached = 0;
 
_

Patches currently in -mm which might be from Yalin.Wang@xxxxxxxxxxxxxx are

mm-add-vm_bug_on_page-for-page_mapcount.patch
mm-add-kpf_zero_page-flag-for-proc-kpageflags.patch
mm-change-meminfo-cached-calculation-fix.patch
linux-next.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 Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux