Skip to content

Commit 913ffbd

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: unexport folio_memcg_{,un}lock
Patch series "unexport memcg locking helpers". Neither the old page-based nor the new folio-based memcg locking helpers are used in modular code at all, so drop the exports. This patch (of 2): folio_memcg_{,un}lock are only used in built-in core mm code. Link: https://lkml.kernel.org/r/20210820095815.445392-1-hch@lst.de Link: https://lkml.kernel.org/r/20210820095815.445392-2-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Vladimir Davydov <vdavydov.dev@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ab09243 commit 913ffbd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

mm/memcontrol.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,6 @@ void folio_memcg_lock(struct folio *folio)
20582058
memcg->move_lock_task = current;
20592059
memcg->move_lock_flags = flags;
20602060
}
2061-
EXPORT_SYMBOL(folio_memcg_lock);
20622061

20632062
void lock_page_memcg(struct page *page)
20642063
{
@@ -2092,7 +2091,6 @@ void folio_memcg_unlock(struct folio *folio)
20922091
{
20932092
__folio_memcg_unlock(folio_memcg(folio));
20942093
}
2095-
EXPORT_SYMBOL(folio_memcg_unlock);
20962094

20972095
void unlock_page_memcg(struct page *page)
20982096
{

0 commit comments

Comments
 (0)