diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index b5d8a1f820a0..28763b8bdbdd 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -1103,7 +1103,7 @@ EXPORT_SYMBOL(write_one_page); | |||
1103 | int __set_page_dirty_no_writeback(struct page *page) | 1103 | int __set_page_dirty_no_writeback(struct page *page) |
1104 | { | 1104 | { |
1105 | if (!PageDirty(page)) | 1105 | if (!PageDirty(page)) |
1106 | SetPageDirty(page); | 1106 | return !TestSetPageDirty(page); |
1107 | return 0; | 1107 | return 0; |
1108 | } | 1108 | } |
1109 | 1109 | ||