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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Daisuke Nishimura <nishimura@xxxxxxxxxxxxxxxxx> Cc: Hugh Dickins <hugh.dickins@xxxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Li Zefan <lizf@xxxxxxxxxxxxxx> Cc: Dhaval Giani <dhaval@xxxxxxxxxxxxxxxxxx> Cc: YAMAMOTO Takashi <yamamoto@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxxxxxxx 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 -- 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