[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZhQtoFNZBNwBCeXn@fedora>
Date: Mon, 8 Apr 2024 10:47:12 -0700
From: Vishal Moola <vishal.moola@...il.com>
To: Muchun Song <muchun.song@...ux.dev>
Cc: linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
willy@...radead.org, linux-mm@...ck.org
Subject: Re: [PATCH v2 3/3] hugetlb: Convert hugetlb_wp() to use struct
vm_fault
On Sun, Apr 07, 2024 at 05:12:42PM +0800, Muchun Song wrote:
>
>
> On 2024/4/2 04:26, Vishal Moola (Oracle) wrote:
> > hugetlb_wp() can use the struct vm_fault passed in from hugetlb_fault().
> > This alleviates the stack by consolidating 5 variables into a single
> > struct.
> >
> > Signed-off-by: Vishal Moola (Oracle) <vishal.moola@...il.com>
> > ---
> > mm/hugetlb.c | 61 ++++++++++++++++++++++++++--------------------------
> > 1 file changed, 30 insertions(+), 31 deletions(-)
> >
> > diff --git a/mm/hugetlb.c b/mm/hugetlb.c
> > index aca2f11b4138..d4f26947173e 100644
> > --- a/mm/hugetlb.c
> > +++ b/mm/hugetlb.c
> > @@ -5918,18 +5918,16 @@ static void unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
> > * Keep the pte_same checks anyway to make transition from the mutex easier.
> > */
> > static vm_fault_t hugetlb_wp(struct mm_struct *mm, struct vm_area_struct *vma,
> > - unsigned long address, pte_t *ptep, unsigned int flags,
> > - struct folio *pagecache_folio, spinlock_t *ptl,
> > + struct folio *pagecache_folio,
>
> The same as comment in the previous thread.
And fold the attached patch into here as well please Andrew?
View attachment "0002-hugetlb-Simplyfy-hugetlb_wp-arguments.patch" of type "text/plain" (2132 bytes)
Powered by blists - more mailing lists