diff options
| author | Tejun Heo <tj@kernel.org> | 2019-08-26 12:06:54 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2019-08-27 11:22:38 -0400 |
| commit | ed288dc0d4aa29f65bd25b31b5cb866aa5664ff9 (patch) | |
| tree | fbca2981025e2f6300933da4de6423ee3298b4a0 /include/linux/backing-dev.h | |
| parent | 34f8fe501f0624de115d087680c84000b5d9abc9 (diff) | |
writeback: Separate out wb_get_lookup() from wb_get_create()
Separate out wb_get_lookup() which doesn't try to create one if there
isn't already one from wb_get_create(). This will be used by later
patches.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/backing-dev.h')
| -rw-r--r-- | include/linux/backing-dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 84cdcfbc763f..97967ce06de3 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h | |||
| @@ -230,6 +230,8 @@ static inline int bdi_sched_wait(void *word) | |||
| 230 | struct bdi_writeback_congested * | 230 | struct bdi_writeback_congested * |
| 231 | wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp); | 231 | wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp); |
| 232 | void wb_congested_put(struct bdi_writeback_congested *congested); | 232 | void wb_congested_put(struct bdi_writeback_congested *congested); |
| 233 | struct bdi_writeback *wb_get_lookup(struct backing_dev_info *bdi, | ||
| 234 | struct cgroup_subsys_state *memcg_css); | ||
| 233 | struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi, | 235 | struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi, |
| 234 | struct cgroup_subsys_state *memcg_css, | 236 | struct cgroup_subsys_state *memcg_css, |
| 235 | gfp_t gfp); | 237 | gfp_t gfp); |
