mm: cma: add trace events for CMA allocations and freeings
[deliverable/linux.git] / mm / page-writeback.c
index 0372411f38fc516dd64cd6432cce29ee613facf4..5daf5568b9e149ea9dce0383b0452bd30ad67f84 100644 (file)
@@ -2228,7 +2228,8 @@ int set_page_dirty(struct page *page)
                 * it will confuse readahead and make it restart the size rampup
                 * process. But it's a trivial problem.
                 */
-               ClearPageReclaim(page);
+               if (PageReclaim(page))
+                       ClearPageReclaim(page);
 #ifdef CONFIG_BLOCK
                if (!spd)
                        spd = __set_page_dirty_buffers;
This page took 0.028473 seconds and 5 git commands to generate.