The last caller was removed in commit 90f095b816e2 ("mm/page_owner: use memcg_data snapshot to avoid TOCTOU in print_page_owner_memcg()"). Remove it. Signed-off-by: Tal Zussman --- include/linux/memcontrol.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index b65a2d0fca3a..33439e285d94 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -499,13 +499,6 @@ static inline struct mem_cgroup *folio_memcg_check(const struct folio *folio) return obj_cgroup_memcg(objcg); } -static inline struct mem_cgroup *page_memcg_check(const struct page *page) -{ - if (PageTail(page)) - return NULL; - return folio_memcg_check((const struct folio *)page); -} - static inline struct mem_cgroup *get_mem_cgroup_from_objcg(const struct obj_cgroup *objcg) { struct mem_cgroup *memcg; @@ -1089,11 +1082,6 @@ static inline struct mem_cgroup *folio_memcg_check(const struct folio *folio) return NULL; } -static inline struct mem_cgroup *page_memcg_check(const struct page *page) -{ - return NULL; -} - static inline struct mem_cgroup *get_mem_cgroup_from_objcg(const struct obj_cgroup *objcg) { return NULL; -- 2.39.5