aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-06-19 17:08:06 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 12:23:03 -0400
commitc1955ce32fdb0877b7a1b22feb2669358f65be76 (patch)
tree805b4da7168b0b16de890ea248323f3cdf5dc0b7 /include
parent4c4762d10faf93167b84ee03e4b58dd62012b06f (diff)
writeback: remove wb_list
The wb_list member of struct backing_device_info always has exactly one element. Just use the direct bdi->wb pointer instead and simplify some code. Also remove bdi_task_init which is now trivial to prepare for the next patch. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/backing-dev.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index e9aec0d099df..50f146146169 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -45,8 +45,6 @@ enum bdi_stat_item {
45#define BDI_STAT_BATCH (8*(1+ilog2(nr_cpu_ids))) 45#define BDI_STAT_BATCH (8*(1+ilog2(nr_cpu_ids)))
46 46
47struct bdi_writeback { 47struct bdi_writeback {
48 struct list_head list; /* hangs off the bdi */
49
50 struct backing_dev_info *bdi; /* our parent bdi */ 48 struct backing_dev_info *bdi; /* our parent bdi */
51 unsigned int nr; 49 unsigned int nr;
52 50
@@ -80,8 +78,7 @@ struct backing_dev_info {
80 unsigned int max_ratio, max_prop_frac; 78 unsigned int max_ratio, max_prop_frac;
81 79
82 struct bdi_writeback wb; /* default writeback info for this bdi */ 80 struct bdi_writeback wb; /* default writeback info for this bdi */
83 spinlock_t wb_lock; /* protects update side of wb_list */ 81 spinlock_t wb_lock; /* protects work_list */
84 struct list_head wb_list; /* the flusher threads hanging off this bdi */
85 82
86 struct list_head work_list; 83 struct list_head work_list;
87 84