lkml.org 
[lkml]   [2022]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 10/13] mm/munlock: mlock_page() munlock_page() batch by pagevec
On Tue, Feb 15, 2022 at 01:02:30PM -0800, Hugh Dickins wrote:
> On Tue, 15 Feb 2022, Matthew Wilcox wrote:
> > > +#define mlock_new(page) ((struct page *)((unsigned long)page + NEW_PAGE))
> >
> > I'm going to change this to:
> >
> > static inline struct page *mlock_lru(struct page *page)
> > {
> > return (struct page *)((unsigned long)page + LRU_PAGE);
> > }
> >
> > (mutatis mutandi for mlock_new)
>
> Okay, thanks. (You're not naming your folio "page" :-?)

Worse, I tried passing it '&folio->page'. That produced some ...
interesting compiler error messages.

\
 
 \ /
  Last update: 2022-02-15 23:59    [W:0.073 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site