diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-19 23:08:06 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 18:23:03 +0200 |
commit | c1955ce32fdb0877b7a1b22feb2669358f65be76 (patch) | |
tree | 805b4da7168b0b16de890ea248323f3cdf5dc0b7 /fs | |
parent | 4c4762d10faf93167b84ee03e4b58dd62012b06f (diff) | |
download | talos-obmc-linux-c1955ce32fdb0877b7a1b22feb2669358f65be76.tar.gz talos-obmc-linux-c1955ce32fdb0877b7a1b22feb2669358f65be76.zip |
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 'fs')
-rw-r--r-- | fs/fs-writeback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index d5be1693ac93..d67989b8ba44 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -73,9 +73,9 @@ static void bdi_queue_work(struct backing_dev_info *bdi, * If the default thread isn't there, make sure we add it. When * it gets created and wakes up, we'll run this work. */ - if (unlikely(list_empty_careful(&bdi->wb_list))) + if (unlikely(!bdi->wb.task)) { wake_up_process(default_backing_dev_info.wb.task); - else { + } else { struct bdi_writeback *wb = &bdi->wb; if (wb->task) |