From: Alexander Gordeev <agordeev@linux.ibm.com>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: linux-mm@kvack.org,
Christian Borntraeger <borntraeger@linux.ibm.com>,
David Hildenbrand <david@redhat.com>,
Heiko Carstens <hca@linux.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
kvm@vger.kernel.org, linux-s390@vger.kernel.org,
linux-kernel@vger.kernel.org,
Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Subject: Re: [PATCH] s390/mm: Use pmd_pgtable_page() helper in __gmap_segment_gaddr()
Date: Mon, 28 Nov 2022 09:18:44 +0100 [thread overview]
Message-ID: <Y4Ru5Cnz+yps7RST@li-4a3a4a4c-28e5-11b2-a85c-a8d192c6f089.ibm.com> (raw)
In-Reply-To: <28b976dd-3d12-3f2c-9b70-a5423255943e@arm.com>
On Mon, Nov 28, 2022 at 01:13:45PM +0530, Anshuman Khandual wrote:
> >>>> index e9e387caffac..5ead9e997510 100644
> >>>> --- a/include/linux/mm.h
> >>>> +++ b/include/linux/mm.h
> >>>> @@ -2403,7 +2403,7 @@ static inline void pgtable_pte_page_dtor(struct page *page)
> >>>>
> >>>> #if USE_SPLIT_PMD_PTLOCKS
> >>>>
> >>>> -static struct page *pmd_pgtable_page(pmd_t *pmd)
> >>>> +static inline struct page *pmd_pgtable_page(pmd_t *pmd)
> >>>> {
> >>>> unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
> >>>> return virt_to_page((void *)((unsigned long) pmd & mask));
> >>>
> >>> This chunk does not appear to belong to this patch.
> >>
> >> Should not this helper be made a 'static inline' before using it else where ?
> >
> > Probably yes, but it is not kvm s390-specific change.
>
> Right, just that the s390 change here is the first instance where this helper
> is being used outside the header, hence kept them together.
>
> >
> > I guess, you wanted to make it together or as a follow-up to this one?
> > https://lore.kernel.org/all/20221124131641.1523772-1-anshuman.khandual@arm.com/
> >
> Unless too much trouble, could we just keep it here as proposed.
For s390 part:
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Thanks!
prev parent reply other threads:[~2022-11-28 8:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-25 3:45 Anshuman Khandual
2022-11-28 6:07 ` Alexander Gordeev
2022-11-28 6:31 ` Anshuman Khandual
2022-11-28 7:13 ` Alexander Gordeev
2022-11-28 7:43 ` Anshuman Khandual
2022-11-28 8:18 ` Alexander Gordeev [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=Y4Ru5Cnz+yps7RST@li-4a3a4a4c-28e5-11b2-a85c-a8d192c6f089.ibm.com \
--to=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=borntraeger@linux.ibm.com \
--cc=david@redhat.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.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