[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YNTQA3JVoIdHWxyT@casper.infradead.org>
Date: Thu, 24 Jun 2021 19:33:39 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: akpm@...ux-foundation.org, linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 25/46] mm/writeback: Add folio_start_writeback()
On Wed, Jun 23, 2021 at 11:18:04AM +0200, Christoph Hellwig wrote:
> > +static inline void set_page_writeback_keepwrite(struct page *page)
> > {
> > + folio_start_writeback_keepwrite(page_folio(page));
> > }
> >
> > +static inline bool test_set_page_writeback(struct page *page)
> > {
> > + return set_page_writeback(page);
> > }
>
> Shouldn't these be in folio-compat.c as well?
Thought about it. We only have one caller of
set_page_writeback_keepwrite(), so it may as well get inlined there.
And test_set_page_writeback() is just a renaming ... I'd rather
replace the callers of test_set_page_writeback() with calls to
the new set_page_writeback() than move it into folio-compat.
> Otherwise looks good:
>
> Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists