mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +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
|
@ -614,8 +614,8 @@ static int writeback_sb_inodes(struct super_block *sb,
|
|||
return 1;
|
||||
}
|
||||
|
||||
static void writeback_inodes_wb(struct bdi_writeback *wb,
|
||||
struct writeback_control *wbc)
|
||||
void writeback_inodes_wb(struct bdi_writeback *wb,
|
||||
struct writeback_control *wbc)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -660,13 +660,6 @@ static void writeback_inodes_wb(struct bdi_writeback *wb,
|
|||
/* Leave any unwritten inodes on b_io */
|
||||
}
|
||||
|
||||
void writeback_inodes_wbc(struct writeback_control *wbc)
|
||||
{
|
||||
struct backing_dev_info *bdi = wbc->bdi;
|
||||
|
||||
writeback_inodes_wb(&bdi->wb, wbc);
|
||||
}
|
||||
|
||||
/*
|
||||
* The maximum number of pages to writeout in a single bdi flush/kupdate
|
||||
* operation. We do this so we don't hold I_SYNC against an inode for
|
||||
|
@ -705,7 +698,6 @@ static long wb_writeback(struct bdi_writeback *wb,
|
|||
struct wb_writeback_args *args)
|
||||
{
|
||||
struct writeback_control wbc = {
|
||||
.bdi = wb->bdi,
|
||||
.sb = args->sb,
|
||||
.sync_mode = args->sync_mode,
|
||||
.older_than_this = NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue