diff options
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 63512a9ed57e..44720363374c 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -274,9 +274,9 @@ static void balance_dirty_pages(struct address_space *mapping) | |||
274 | pdflush_operation(background_writeout, 0); | 274 | pdflush_operation(background_writeout, 0); |
275 | } | 275 | } |
276 | 276 | ||
277 | void set_page_dirty_balance(struct page *page) | 277 | void set_page_dirty_balance(struct page *page, int page_mkwrite) |
278 | { | 278 | { |
279 | if (set_page_dirty(page)) { | 279 | if (set_page_dirty(page) || page_mkwrite) { |
280 | struct address_space *mapping = page_mapping(page); | 280 | struct address_space *mapping = page_mapping(page); |
281 | 281 | ||
282 | if (mapping) | 282 | if (mapping) |