diff options
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index ea9da3bed3e9..886ea0d5a136 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
@@ -824,6 +824,7 @@ int __set_page_dirty_nobuffers(struct page *page) | |||
824 | mapping2 = page_mapping(page); | 824 | mapping2 = page_mapping(page); |
825 | if (mapping2) { /* Race with truncate? */ | 825 | if (mapping2) { /* Race with truncate? */ |
826 | BUG_ON(mapping2 != mapping); | 826 | BUG_ON(mapping2 != mapping); |
827 | WARN_ON_ONCE(!PagePrivate(page) && !PageUptodate(page)); | ||
827 | if (mapping_cap_account_dirty(mapping)) { | 828 | if (mapping_cap_account_dirty(mapping)) { |
828 | __inc_zone_page_state(page, NR_FILE_DIRTY); | 829 | __inc_zone_page_state(page, NR_FILE_DIRTY); |
829 | task_io_account_write(PAGE_CACHE_SIZE); | 830 | task_io_account_write(PAGE_CACHE_SIZE); |