mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
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>
This commit is contained in:
parent
4c4762d10f
commit
c1955ce32f
3 changed files with 32 additions and 60 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue