[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210406142316.GY3062550@infradead.org>
Date: Tue, 6 Apr 2021 15:23:16 +0100
From: Christoph Hellwig <hch@...radead.org>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-cachefs@...hat.com,
linux-afs@...ts.infradead.org
Subject: Re: [PATCH v6 26/27] mm/filemap: Convert wake_up_page_bit to
wake_up_folio_bit
On Wed, Mar 31, 2021 at 07:47:27PM +0100, Matthew Wilcox (Oracle) wrote:
> void unlock_page_private_2(struct page *page)
> {
> - page = compound_head(page);
> - VM_BUG_ON_PAGE(!PagePrivate2(page), page);
> - clear_bit_unlock(PG_private_2, &page->flags);
> - wake_up_page_bit(page, PG_private_2);
> + struct folio *folio = page_folio(page);
> + VM_BUG_ON_FOLIO(!FolioPrivate2(folio), folio);
A whitespace between the declaration and the code would be nice.
Otherwise looks good;
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists