All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded] memcg-fix-swap-accounting-update.patch removed from -mm tree
@ 2009-06-17 22:49 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-17 22:49 UTC (permalink / raw)
  To: kamezawa.hiroyu, balbir, dhaval, hannes, hugh.dickins, lizf, nishimura


The patch titled
     memcg-fix-swap-accounting-update
has been removed from the -mm tree.  Its filename was
     memcg-fix-swap-accounting-update.patch

This patch was dropped because it was folded into memcg-fix-swap-accounting.patch

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: memcg-fix-swap-accounting-update
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

This is a replacement for
  memcg-fix-swap-accounting.patch in mmotm.
Adjusted to style changes in 2/4 and 3/4.

Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/swap.h |    4 ++--
 mm/memcontrol.c      |    2 +-
 mm/swapfile.c        |    8 +++++---
 3 files changed, 8 insertions(+), 6 deletions(-)

diff -puN include/linux/swap.h~memcg-fix-swap-accounting-update include/linux/swap.h
--- a/include/linux/swap.h~memcg-fix-swap-accounting-update
+++ a/include/linux/swap.h
@@ -320,10 +320,10 @@ static inline void disable_swap_token(vo
 
 #ifdef CONFIG_CGROUP_MEM_RES_CTLR
 extern void
-mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, int swapout);
+mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout);
 #else
 static inline void
-mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, int swapout)
+mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout)
 {
 }
 #endif
diff -puN mm/memcontrol.c~memcg-fix-swap-accounting-update mm/memcontrol.c
--- a/mm/memcontrol.c~memcg-fix-swap-accounting-update
+++ a/mm/memcontrol.c
@@ -1559,7 +1559,7 @@ void mem_cgroup_uncharge_cache_page(stru
  * memcg information is recorded to swap_cgroup of "ent"
  */
 void
-mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, int swapout)
+mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout)
 {
 	struct mem_cgroup *memcg;
 	int ctype = MEM_CGROUP_CHARGE_TYPE_SWAPOUT;
diff -puN mm/swapfile.c~memcg-fix-swap-accounting-update mm/swapfile.c
--- a/mm/swapfile.c~memcg-fix-swap-accounting-update
+++ a/mm/swapfile.c
@@ -614,12 +614,14 @@ void swapcache_free(swp_entry_t entry, s
 
 	p = swap_info_get(entry);
 	if (p) {
-		ret = swap_entry_free(p, entry, 1);
+		ret = swap_entry_free(p, entry, SWAP_CACHE);
 		if (page) {
+			bool swapout;
 			if (ret)
-				mem_cgroup_uncharge_swapcache(page, entry, 1);
+				swapout = true; /* the end of swap out */
 			else
-				mem_cgroup_uncharge_swapcache(page, entry, 0);
+				swapout = false; /* no more swap users! */
+			mem_cgroup_uncharge_swapcache(page, entry, swapout);
 		}
 		spin_unlock(&swap_lock);
 	}
_

Patches currently in -mm which might be from kamezawa.hiroyu@jp.fujitsu.com are

origin.patch
cgroups-forbid-noprefix-if-mounting-more-than-just-cpuset-subsystem.patch
memcg-add-file-based-rss-accounting.patch
memcg-remove-mem_cgroup_cache_charge_swapin.patch
memcg-remove-some-redundant-checks.patch
memcg-remove-unneeded-forward-declaration-from-schedh.patch
memcg-fix-swap-accounting.patch
memcg-fix-swap-accounting-update.patch
memcg-fix-behavior-under-memorylimit-equals-to-memswlimit.patch
memcg-add-interface-to-reset-limits.patch
memcg-fix-lru-rotation-in-isolate_pages.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-17 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 22:49 [folded] memcg-fix-swap-accounting-update.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.