]> err.no Git - linux-2.6/blobdiff - fs/buffer.c
[PATCH] lockdep: add per_cpu_offset()
[linux-2.6] / fs / buffer.c
index bf22bb56a080d740ce311df63fe46b05afe9fbe7..3660dcb975912d5a831a7940192df8f53354024d 100644 (file)
@@ -851,7 +851,7 @@ int __set_page_dirty_buffers(struct page *page)
                write_lock_irq(&mapping->tree_lock);
                if (page->mapping) {    /* Race with truncate? */
                        if (mapping_cap_account_dirty(mapping))
-                               inc_page_state(nr_dirty);
+                               __inc_zone_page_state(page, NR_FILE_DIRTY);
                        radix_tree_tag_set(&mapping->page_tree,
                                                page_index(page),
                                                PAGECACHE_TAG_DIRTY);