mm/memcg: Convert mem_cgroup_uncharge() to take a folio
Convert all the callers to call page_folio(). Most of them were already using a head page, but a few of them I can't prove were, so this may actually fix a bug. Signed-off-by:Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by:
Christoph Hellwig <hch@lst.de> Acked-by:
Mike Rapoport <rppt@linux.ibm.com> Reviewed-by:
David Howells <dhowells@redhat.com> Acked-by:
Vlastimil Babka <vbabka@suse.cz>
Showing
- include/linux/memcontrol.h 11 additions, 4 deletionsinclude/linux/memcontrol.h
- mm/filemap.c 1 addition, 1 deletionmm/filemap.c
- mm/khugepaged.c 2 additions, 2 deletionsmm/khugepaged.c
- mm/memcontrol.c 4 additions, 10 deletionsmm/memcontrol.c
- mm/memory-failure.c 1 addition, 1 deletionmm/memory-failure.c
- mm/memremap.c 1 addition, 1 deletionmm/memremap.c
- mm/page_alloc.c 1 addition, 1 deletionmm/page_alloc.c
- mm/swap.c 1 addition, 1 deletionmm/swap.c
Loading
Please register or sign in to comment