diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index fa941b169071..dd7d7fc5ed60 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <linux/module.h> | 49 | #include <linux/module.h> |
50 | #include <linux/delayacct.h> | 50 | #include <linux/delayacct.h> |
51 | #include <linux/init.h> | 51 | #include <linux/init.h> |
52 | #include <linux/writeback.h> | ||
52 | 53 | ||
53 | #include <asm/pgalloc.h> | 54 | #include <asm/pgalloc.h> |
54 | #include <asm/uaccess.h> | 55 | #include <asm/uaccess.h> |
@@ -1571,7 +1572,7 @@ gotten: | |||
1571 | unlock: | 1572 | unlock: |
1572 | pte_unmap_unlock(page_table, ptl); | 1573 | pte_unmap_unlock(page_table, ptl); |
1573 | if (dirty_page) { | 1574 | if (dirty_page) { |
1574 | set_page_dirty(dirty_page); | 1575 | set_page_dirty_balance(dirty_page); |
1575 | put_page(dirty_page); | 1576 | put_page(dirty_page); |
1576 | } | 1577 | } |
1577 | return ret; | 1578 | return ret; |
@@ -2218,7 +2219,7 @@ retry: | |||
2218 | unlock: | 2219 | unlock: |
2219 | pte_unmap_unlock(page_table, ptl); | 2220 | pte_unmap_unlock(page_table, ptl); |
2220 | if (dirty_page) { | 2221 | if (dirty_page) { |
2221 | set_page_dirty(dirty_page); | 2222 | set_page_dirty_balance(dirty_page); |
2222 | put_page(dirty_page); | 2223 | put_page(dirty_page); |
2223 | } | 2224 | } |
2224 | return ret; | 2225 | return ret; |