]> err.no Git - linux-2.6/blobdiff - fs/buffer.c
ext4: fix setup_new_group_blocks locking
[linux-2.6] / fs / buffer.c
index faceb5eecca96d5fd8d879640c510e2edb944a85..76403b1764c54e53b5b2cb2660ae11d7352f0319 100644 (file)
@@ -710,6 +710,8 @@ static int __set_page_dirty(struct page *page,
 
                if (mapping_cap_account_dirty(mapping)) {
                        __inc_zone_page_state(page, NR_FILE_DIRTY);
+                       __inc_bdi_stat(mapping->backing_dev_info,
+                                       BDI_RECLAIMABLE);
                        task_io_account_write(PAGE_CACHE_SIZE);
                }
                radix_tree_tag_set(&mapping->page_tree,
@@ -1728,7 +1730,6 @@ done:
                 * The page and buffer_heads can be released at any time from
                 * here on.
                 */
-               wbc->pages_skipped++;   /* We didn't write this page */
        }
        return err;