From: Will Deacon <will@kernel.org>
To: linux-arm-kernel@lists.infradead.org, Gavin Shan <gshan@redhat.com>
Cc: catalin.marinas@arm.com, kernel-team@android.com,
Will Deacon <will@kernel.org>,
linux-kernel@vger.kernel.org, anshuman.khandual@arm.com,
ryan.roberts@arm.com, dev.jain@arm.com, peterx@redhat.com,
joey.gouly@arm.com, yangyicong@hisilicon.com,
shan.gavin@gmail.com
Subject: Re: [PATCH v2] arm64: mm: Drop redundant check in pmd_trans_huge()
Date: Fri, 16 May 2025 16:37:46 +0100 [thread overview]
Message-ID: <174740461415.2575604.10045637964283416849.b4-ty@kernel.org> (raw)
In-Reply-To: <20250508085251.204282-1-gshan@redhat.com>
On Thu, 08 May 2025 18:52:51 +1000, Gavin Shan wrote:
> pmd_val(pmd) is redundant because a positive pmd_present(pmd) ensures
> a positive pmd_val(pmd) according to their definitions like below.
>
> #define pmd_val(x) ((x).pmd)
> #define pmd_present(pmd) pte_present(pmd_pte(pmd))
> #define pte_present(pte) (pte_valid(pte) || pte_present_invalid(pte))
> #define pte_valid(pte) (!!(pte_val(pte) & PTE_VALID))
> #define pte_present_invalid(pte) \
> ((pte_val(pte) & (PTE_VALID | PTE_PRESENT_INVALID)) == PTE_PRESENT_INVALID)
>
> [...]
Applied to arm64 (for-next/mm), thanks!
[1/1] arm64: mm: Drop redundant check in pmd_trans_huge()
https://git.kernel.org/arm64/c/13c63ce35883
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
prev parent reply other threads:[~2025-05-16 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-08 8:52 Gavin Shan
2025-05-08 9:22 ` Ryan Roberts
2025-05-08 11:18 ` Gavin Shan
2025-05-16 15:37 ` Will Deacon [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=174740461415.2575604.10045637964283416849.b4-ty@kernel.org \
--to=will@kernel.org \
--cc=anshuman.khandual@arm.com \
--cc=catalin.marinas@arm.com \
--cc=dev.jain@arm.com \
--cc=gshan@redhat.com \
--cc=joey.gouly@arm.com \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterx@redhat.com \
--cc=ryan.roberts@arm.com \
--cc=shan.gavin@gmail.com \
--cc=yangyicong@hisilicon.com \
/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
all inboxes | Powered by JetHome®