Home
last modified time | relevance | path

Searched refs:bdi_stat (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/include/linux/
Dbacking-dev.h72 struct percpu_counter bdi_stat[NR_BDI_STAT_ITEMS]; member
124 __percpu_counter_add(&bdi->bdi_stat[item], amount, BDI_STAT_BATCH); in __add_bdi_stat()
159 static inline s64 bdi_stat(struct backing_dev_info *bdi, in bdi_stat() function
162 return percpu_counter_read_positive(&bdi->bdi_stat[item]); in bdi_stat()
168 return percpu_counter_sum_positive(&bdi->bdi_stat[item]); in __bdi_stat_sum()
/linux-2.6.39/mm/
Dbacking-dev.c94 (unsigned long) K(bdi_stat(bdi, BDI_WRITEBACK)), in bdi_debug_stats_show()
95 (unsigned long) K(bdi_stat(bdi, BDI_RECLAIMABLE)), in bdi_debug_stats_show()
650 err = percpu_counter_init(&bdi->bdi_stat[i], 0); in bdi_init()
661 percpu_counter_destroy(&bdi->bdi_stat[i]); in bdi_init()
689 percpu_counter_destroy(&bdi->bdi_stat[i]); in bdi_destroy()
Dpage-writeback.c531 bdi_nr_reclaimable = bdi_stat(bdi, BDI_RECLAIMABLE); in balance_dirty_pages()
532 bdi_nr_writeback = bdi_stat(bdi, BDI_WRITEBACK); in balance_dirty_pages()