mm: remove folio_pincount_ptr() and head_compound_pincount()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 11 Jan 2023 14:28:47 +0000 (14:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:32:54 +0000 (22:32 -0800)
commit94688e8eb453e616098cb930e5f6fed4a6ea2dfa
tree295626ed36016d5845646287936eaee131973348
parent7d4a8be0c4b2b7ffb367929d2b352651f083806b
mm: remove folio_pincount_ptr() and head_compound_pincount()

We can use folio->_pincount directly, since all users are guarded by tests
of compound/large.

Link: https://lkml.kernel.org/r/20230111142915.1001531-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/core-api/pin_user_pages.rst
include/linux/mm.h
include/linux/mm_types.h
mm/debug.c
mm/gup.c
mm/huge_memory.c
mm/hugetlb.c
mm/page_alloc.c