Re: [PATCH v3 02/15] mm: introduce is_huge_pmd() helper

From
Jason Gunthorpe <jgg@nvidia.com>
Date
2021-11-10 12:29:51
Also in
linux-mm, lkml
Reply to
Qi Zheng, 2021-11-10
On Wed, Nov 10, 2021 at 04:40:44PM +0800, Qi Zheng wrote:
Currently we have some times the following judgments repeated in the
code:

	is_swap_pmd(*pmd) || pmd_trans_huge(*pmd) || pmd_devmap(*pmd)

which is to determine whether the *pmd is a huge pmd, so introduce
is_huge_pmd() helper to deduplicate them.
Isn't this pmd_leaf() ?

Jason
Thread (14 messages) 14 messages, 2 authors, last reply 2021-11-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help