The patch titled mm: count writeback pages per BDI has been removed from the -mm tree. Its filename was mm-count-writeback-pages-per-bdi.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ Subject: mm: count writeback pages per BDI From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Count per BDI writeback pages. Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/backing-dev.h | 1 + mm/page-writeback.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff -puN include/linux/backing-dev.h~mm-count-writeback-pages-per-bdi include/linux/backing-dev.h --- a/include/linux/backing-dev.h~mm-count-writeback-pages-per-bdi +++ a/include/linux/backing-dev.h @@ -27,6 +27,7 @@ typedef int (congested_fn)(void *, int); enum bdi_stat_item { BDI_RECLAIMABLE, + BDI_WRITEBACK, NR_BDI_STAT_ITEMS }; diff -puN mm/page-writeback.c~mm-count-writeback-pages-per-bdi mm/page-writeback.c --- a/mm/page-writeback.c~mm-count-writeback-pages-per-bdi +++ a/mm/page-writeback.c @@ -979,14 +979,18 @@ int test_clear_page_writeback(struct pag int ret; if (mapping) { + struct backing_dev_info *bdi = mapping->backing_dev_info; unsigned long flags; write_lock_irqsave(&mapping->tree_lock, flags); ret = TestClearPageWriteback(page); - if (ret) + if (ret) { radix_tree_tag_clear(&mapping->page_tree, page_index(page), PAGECACHE_TAG_WRITEBACK); + if (bdi_cap_writeback_dirty(bdi)) + __dec_bdi_stat(bdi, BDI_WRITEBACK); + } write_unlock_irqrestore(&mapping->tree_lock, flags); } else { ret = TestClearPageWriteback(page); @@ -1002,14 +1006,18 @@ int test_set_page_writeback(struct page int ret; if (mapping) { + struct backing_dev_info *bdi = mapping->backing_dev_info; unsigned long flags; write_lock_irqsave(&mapping->tree_lock, flags); ret = TestSetPageWriteback(page); - if (!ret) + if (!ret) { radix_tree_tag_set(&mapping->page_tree, page_index(page), PAGECACHE_TAG_WRITEBACK); + if (bdi_cap_writeback_dirty(bdi)) + __inc_bdi_stat(bdi, BDI_WRITEBACK); + } if (!PageDirty(page)) radix_tree_tag_clear(&mapping->page_tree, page_index(page), _ Patches currently in -mm which might be from a.p.zijlstra@xxxxxxxxx are lumpy-reclaim-v4.patch split-mmap.patch only-allow-nonlinear-vmas-for-ram-backed-filesystems.patch mm-remove-destroy_dirty_buffers-from-invalidate_bdev.patch mm-optimize-kill_bdev.patch mm-optimize-kill_bdev-fix.patch mm-optimize-acorn-partition-truncate.patch lazy-freeing-of-memory-through-madv_free.patch lazy-freeing-of-memory-through-madv_free-fix.patch lazy-freeing-of-memory-through-madv_free-vs-mm-madvise-avoid-exclusive-mmap_sem.patch restore-madv_dontneed-to-its-original-linux-behaviour.patch exec-fix-remove_arg_zero-add-comment.patch lockdep-treats-down_write_trylock-like-regular-down_write.patch nfs-fix-congestion-control-use-atomic_longs.patch mm-count-writeback-pages-per-bdi.patch mm-expose-bdi-statistics-in-sysfs.patch mm-expose-bdi-statistics-in-sysfs-printk-fixes.patch mm-per-device-dirty-threshold.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html