diff --git a/mm/page-writeback.c b/mm/page-writeback.c index b5d8a1f820a02f3bf841a6b655643f61adbeedc2..28763b8bdbddd9caba1478cc9e8aa205a02cf397 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1103,7 +1103,7 @@ EXPORT_SYMBOL(write_one_page); int __set_page_dirty_no_writeback(struct page *page) { if (!PageDirty(page)) - SetPageDirty(page); + return !TestSetPageDirty(page); return 0; }