Messages in this thread Patch in this message | | | Date | Mon, 3 Nov 2014 13:27:40 -0500 | From | Johannes Weiner <> | Subject | [patch] mm: move page->mem_cgroup bad page handling into generic code fix |
| |
Remove unneeded !CONFIG_MEMCG memcg bad_page() dummies as well.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> --- include/linux/memcontrol.h | 13 ------------- 1 file changed, 13 deletions(-)
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index e789551d4db0..41ae72b02b55 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -342,19 +342,6 @@ void mem_cgroup_count_vm_event(struct mm_struct *mm, enum vm_event_item idx) } #endif /* CONFIG_MEMCG */ -#if !defined(CONFIG_MEMCG) || !defined(CONFIG_DEBUG_VM) -static inline bool -mem_cgroup_bad_page_check(struct page *page) -{ - return false; -} - -static inline void -mem_cgroup_print_bad_page(struct page *page) -{ -} -#endif - enum { UNDER_LIMIT, SOFT_LIMIT, -- 2.1.3
| |