diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 358d6f28c627b737417a9ad6ccdd424bbab1d3c1..7709f0e223f5d9457779f27d64803eb4f387d5bd 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -2849,6 +2849,7 @@ EXPORT_SYMBOL_GPL(wait_on_page_writeback); */ void wait_for_stable_page(struct page *page) { + page = thp_head(page); if (page->mapping->host->i_sb->s_iflags & SB_I_STABLE_WRITES) wait_on_page_writeback(page); }