From: David Hildenbrand <david@redhat.com>
To: Anshuman Khandual <anshuman.khandual@arm.com>, linux-mm@kvack.org
Cc: Jonathan Corbet <corbet@lwn.net>,
Andrew Morton <akpm@linux-foundation.org>,
Andrea Arcangeli <aarcange@redhat.com>,
Mike Rapoport <rppt@kernel.org>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] documentation/mm: Update pmd_present() in arch_pgtable_helpers.rst
Date: Wed, 23 Nov 2022 10:24:21 +0100 [thread overview]
Message-ID: <8f743e24-4da5-7ca0-ac0f-49b6ad7e7a0a@redhat.com> (raw)
In-Reply-To: <20221123051319.1312582-1-anshuman.khandual@arm.com>
On 23.11.22 06:13, Anshuman Khandual wrote:
> Although pmd_present() might seem to indicate a valid and mapped pmd entry,
> in reality it returns true when pmd_page() points to a valid page in memory
> , regardless whether the pmd entry is mapped or not. Andrea Arcangeli had
> earlier explained [1] the required semantics for pmd_present(). This just
> updates the documentation for pmd_present() as required.
>
> [1] https://lore.kernel.org/lkml/20181017020930.GN30832@redhat.com/
>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Andrea Arcangeli <aarcange@redhat.com>
> Cc: Mike Rapoport <rppt@kernel.org>
> Cc: linux-mm@kvack.org
> Cc: linux-doc@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
> ---
> This applies on v6.1-rc6
>
> The latest trigger was from an earlier discussion here.
>
> https://lore.kernel.org/all/53c0c955-7afe-905b-468a-cd7ac81238c5@arm.com/
>
> Documentation/mm/arch_pgtable_helpers.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/mm/arch_pgtable_helpers.rst b/Documentation/mm/arch_pgtable_helpers.rst
> index cbaee9e59241..fd2a19df884e 100644
> --- a/Documentation/mm/arch_pgtable_helpers.rst
> +++ b/Documentation/mm/arch_pgtable_helpers.rst
> @@ -94,7 +94,7 @@ PMD Page Table Helpers
> +---------------------------+--------------------------------------------------+
> | pmd_trans_huge | Tests a Transparent Huge Page (THP) at PMD |
> +---------------------------+--------------------------------------------------+
> -| pmd_present | Tests a valid mapped PMD |
> +| pmd_present | Tests whether pmd_page() points to valid memory |
> +---------------------------+--------------------------------------------------+
> | pmd_young | Tests a young PMD |
> +---------------------------+--------------------------------------------------+
Acked-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2022-11-23 9:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 5:13 [PATCH] documentation/mm: Update pmd_present() in arch_pgtable_helpers.rst Anshuman Khandual
2022-11-23 9:24 ` David Hildenbrand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f743e24-4da5-7ca0-ac0f-49b6ad7e7a0a@redhat.com \
--to=david@redhat.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).