Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753507AbbGaPFE (ORCPT ); Fri, 31 Jul 2015 11:05:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48295 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751942AbbGaPFC (ORCPT ); Fri, 31 Jul 2015 11:05:02 -0400 Message-ID: <55BB8E97.4040005@redhat.com> Date: Fri, 31 Jul 2015 17:04:55 +0200 From: Jerome Marchand User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Hugh Dickins CC: Dave Hansen , Mel Gorman , Rik van Riel , Vlastimil Babka , Christoph Lameter , Naoya Horiguchi , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , Sasha Levin , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv9 27/36] mm: differentiate page_mapped() from page_mapcount() for compound pages References: <1437402069-105900-1-git-send-email-kirill.shutemov@linux.intel.com> <1437402069-105900-28-git-send-email-kirill.shutemov@linux.intel.com> In-Reply-To: <1437402069-105900-28-git-send-email-kirill.shutemov@linux.intel.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cKN1r8KnNfCxoBcaFp7GBSMTRBG7pl9SD" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2378 Lines: 65 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cKN1r8KnNfCxoBcaFp7GBSMTRBG7pl9SD Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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). >=20 > On other hand page_mapcount() return mapcount for this particular small= > page. >=20 > This will make cases like page_get_anon_vma() behave correctly once we > allow huge pages to be mapped with PTE. >=20 > Most users outside core-mm should use page_mapcount() instead of > page_mapped(). >=20 > Signed-off-by: Kirill A. Shutemov > Tested-by: Sasha Levin > Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand > --- > 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(-) >=20 --cKN1r8KnNfCxoBcaFp7GBSMTRBG7pl9SD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVu46XAAoJEHTzHJCtsuoC7NYH+wQJJZuesz/OeAscJ/zrPvSE saj4QT33ICzOb9W0C/tFUOQhYn0WWS8GIQXErU5N5PuTfx/mgw0WK/hENaRmLADO fP6XLdh8fmCtexS9UFOLv69dIcMYV4rUqFEaJ2qeGwVe/9ymLov2RS2gvAFFiey2 u6ibm4Dg7avYiZfvqzozak30MYwIsZlYRsznV6amiC0nhaEpUkWTffXD0+Y28Ha1 7vOgn6IFV37uUb0o2Y9c+Y1NlmuEnshT2aKmrlTxo83UMqYzrFduLFJyWOBcygIu uWFbmkupLz/wiHlf0It3PS1FhbaXkdJFXoKofO4Gnp3VQ4tbGBJ/bVsDQZz0s+I= =fCYg -----END PGP SIGNATURE----- --cKN1r8KnNfCxoBcaFp7GBSMTRBG7pl9SD-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/