[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200610201345.13273-46-willy@infradead.org>
Date: Wed, 10 Jun 2020 13:13:39 -0700
From: Matthew Wilcox <willy@...radead.org>
To: linux-fsdevel@...r.kernel.org
Cc: "Matthew Wilcox (Oracle)" <willy@...radead.org>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: [PATCH v6 45/51] mm: Support tail pages in wait_for_stable_page
From: "Matthew Wilcox (Oracle)" <willy@...radead.org>
page->mapping is undefined for tail pages, so operate exclusively on
the head page.
Signed-off-by: Matthew Wilcox (Oracle) <willy@...radead.org>
---
mm/page-writeback.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 28b3e7a67565..1b358aac065f 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -2851,6 +2851,7 @@ EXPORT_SYMBOL_GPL(wait_on_page_writeback);
*/
void wait_for_stable_page(struct page *page)
{
+ page = thp_head(page);
if (bdi_cap_stable_pages_required(inode_to_bdi(page->mapping->host)))
wait_on_page_writeback(page);
}
--
2.26.2
Powered by blists - more mailing lists