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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -230,6 +230,8 @@ static inline int bdi_sched_wait(void *word) · 229 unmodified lines | ||
| 230 | 230 | struct bdi_writeback_congested * |
| 231 | 231 | wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp); |
| 232 | 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 | 235 | struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi, |
| 234 | 236 | struct cgroup_subsys_state *memcg_css, |
| 235 | 237 | gfp_t gfp); |