On 07/20/2015 04:21 PM, Kirill A. Shutemov wrote: > Let's define page_mapped() to be true for compound pages if any > sub-pages of the compound page is mapped (with PMD or PTE). > > On other hand page_mapcount() return mapcount for this particular small > page. > > This will make cases like page_get_anon_vma() behave correctly once we > allow huge pages to be mapped with PTE. > > Most users outside core-mm should use page_mapcount() instead of > page_mapped(). > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> > Tested-by: Sasha Levin <sasha.levin@xxxxxxxxxx> > Tested-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Acked-by: Jerome Marchand <jmarchan@xxxxxxxxxx> > --- > arch/arc/mm/cache_arc700.c | 4 ++-- > arch/arm/mm/flush.c | 2 +- > arch/mips/mm/c-r4k.c | 3 ++- > arch/mips/mm/cache.c | 2 +- > arch/mips/mm/init.c | 6 +++--- > arch/sh/mm/cache-sh4.c | 2 +- > arch/sh/mm/cache.c | 8 ++++---- > arch/xtensa/mm/tlb.c | 2 +- > fs/proc/page.c | 4 ++-- > include/linux/mm.h | 15 +++++++++++++-- > mm/filemap.c | 2 +- > 11 files changed, 31 insertions(+), 19 deletions(-) >
Attachment:
signature.asc
Description: OpenPGP digital signature