mm: page_cgroup: rename file to mm/swap_cgroup.c
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 10 Dec 2014 23:44:55 +0000 (15:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:09 +0000 (17:41 -0800)
Now that the external page_cgroup data structure and its lookup is gone,
the only code remaining in there is swap slot accounting.

Rename it and move the conditional compilation into mm/Makefile.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Tejun Heo <tj@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
MAINTAINERS
include/linux/swap_cgroup.h [moved from include/linux/page_cgroup.h with 88% similarity]
mm/Makefile
mm/memcontrol.c
mm/swap_cgroup.c [moved from mm/page_cgroup.c with 98% similarity]
mm/swap_state.c
mm/swapfile.c

index 0d6469a..0aedd3e 100644 (file)
@@ -2606,7 +2606,7 @@ L:        cgroups@vger.kernel.org
 L:     linux-mm@kvack.org
 S:     Maintained
 F:     mm/memcontrol.c
-F:     mm/page_cgroup.c
+F:     mm/swap_cgroup.c
 
 CORETEMP HARDWARE MONITORING DRIVER
 M:     Fenghua Yu <fenghua.yu@intel.com>
similarity index 88%
rename from include/linux/page_cgroup.h
rename to include/linux/swap_cgroup.h
index 65be357..145306b 100644 (file)
@@ -1,15 +1,17 @@
-#ifndef __LINUX_PAGE_CGROUP_H
-#define __LINUX_PAGE_CGROUP_H
+#ifndef __LINUX_SWAP_CGROUP_H
+#define __LINUX_SWAP_CGROUP_H
 
 #include <linux/swap.h>
 
 #ifdef CONFIG_MEMCG_SWAP
+
 extern unsigned short swap_cgroup_cmpxchg(swp_entry_t ent,
                                        unsigned short old, unsigned short new);
 extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id);
 extern unsigned short lookup_swap_cgroup_id(swp_entry_t ent);
 extern int swap_cgroup_swapon(int type, unsigned long max_pages);
 extern void swap_cgroup_swapoff(int type);
+
 #else
 
 static inline
@@ -37,4 +39,4 @@ static inline void swap_cgroup_swapoff(int type)
 
 #endif /* CONFIG_MEMCG_SWAP */
 
-#endif /* __LINUX_PAGE_CGROUP_H */
+#endif /* __LINUX_SWAP_CGROUP_H */
diff --cc mm/Makefile
Simple merge
diff --cc mm/memcontrol.c
Simple merge
Simple merge
diff --cc mm/swap_state.c
Simple merge
diff --cc mm/swapfile.c
Simple merge