mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
writeback: remove writeback_inodes_wbc
This was just an odd wrapper around writeback_inodes_wb. Removing this also allows to get rid of the bdi member of struct writeback_control which was rather out of place there. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
parent
06d738fa91
commit
9c3a8ee8a1
6 changed files with 6 additions and 20 deletions
|
@ -340,14 +340,13 @@ int bdi_has_dirty_io(struct backing_dev_info *bdi)
|
|||
static void bdi_flush_io(struct backing_dev_info *bdi)
|
||||
{
|
||||
struct writeback_control wbc = {
|
||||
.bdi = bdi,
|
||||
.sync_mode = WB_SYNC_NONE,
|
||||
.older_than_this = NULL,
|
||||
.range_cyclic = 1,
|
||||
.nr_to_write = 1024,
|
||||
};
|
||||
|
||||
writeback_inodes_wbc(&wbc);
|
||||
writeback_inodes_wb(&bdi->wb, &wbc);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -495,7 +495,6 @@ static void balance_dirty_pages(struct address_space *mapping,
|
|||
|
||||
for (;;) {
|
||||
struct writeback_control wbc = {
|
||||
.bdi = bdi,
|
||||
.sync_mode = WB_SYNC_NONE,
|
||||
.older_than_this = NULL,
|
||||
.nr_to_write = write_chunk,
|
||||
|
@ -537,7 +536,7 @@ static void balance_dirty_pages(struct address_space *mapping,
|
|||
* up.
|
||||
*/
|
||||
if (bdi_nr_reclaimable > bdi_thresh) {
|
||||
writeback_inodes_wbc(&wbc);
|
||||
writeback_inodes_wb(&bdi->wb, &wbc);
|
||||
pages_written += write_chunk - wbc.nr_to_write;
|
||||
get_dirty_limits(&background_thresh, &dirty_thresh,
|
||||
&bdi_thresh, bdi);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue