This patch is to prepare for subsequent patches. It only does 's/auto_free/free_work' with no functional changes. Signed-off-by: Julian Sun <sunjunchao@xxxxxxxxxxxxx> --- fs/fs-writeback.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index cc57367fb641..4a6c22df5649 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -48,7 +48,7 @@ struct wb_writeback_work { unsigned int range_cyclic:1; unsigned int for_background:1; unsigned int for_sync:1; /* sync(2) WB_SYNC_ALL writeback */ - unsigned int auto_free:1; /* free on completion */ + unsigned int free_work:1; /* free work on completion */ enum wb_reason reason; /* why was writeback initiated? */ struct list_head list; /* pending work list */ @@ -170,7 +170,7 @@ static void finish_writeback_work(struct wb_writeback_work *work) { struct wb_completion *done = work->done; - if (work->auto_free) + if (work->free_work) kfree(work); if (done) { wait_queue_head_t *waitq = done->waitq; @@ -1029,7 +1029,7 @@ static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, if (work) { *work = *base_work; work->nr_pages = nr_pages; - work->auto_free = 1; + work->free_work = 1; wb_queue_work(wb, work); continue; } @@ -1048,7 +1048,7 @@ static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, work = &fallback_work; *work = *base_work; work->nr_pages = nr_pages; - work->auto_free = 0; + work->free_work = 0; work->done = &fallback_work_done; wb_queue_work(wb, work); @@ -1130,7 +1130,7 @@ int cgroup_writeback_by_id(u64 bdi_id, int memcg_id, work->range_cyclic = 1; work->reason = reason; work->done = done; - work->auto_free = 1; + work->free_work = 1; wb_queue_work(wb, work); ret = 0; } else { @@ -1237,7 +1237,7 @@ static void bdi_split_work_to_wbs(struct backing_dev_info *bdi, might_sleep(); if (!skip_if_busy || !writeback_in_progress(&bdi->wb)) { - base_work->auto_free = 0; + base_work->free_work = 0; wb_queue_work(&bdi->wb, base_work); } } -- 2.20.1