diff options
-rw-r--r-- | mm/rmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -498,9 +498,9 @@ int page_mkclean(struct page *page) | |||
498 | struct address_space *mapping = page_mapping(page); | 498 | struct address_space *mapping = page_mapping(page); |
499 | if (mapping) | 499 | if (mapping) |
500 | ret = page_mkclean_file(mapping, page); | 500 | ret = page_mkclean_file(mapping, page); |
501 | if (page_test_and_clear_dirty(page)) | ||
502 | ret = 1; | ||
501 | } | 503 | } |
502 | if (page_test_and_clear_dirty(page)) | ||
503 | ret = 1; | ||
504 | 504 | ||
505 | return ret; | 505 | return ret; |
506 | } | 506 | } |