History

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.

Tejun Heo committed 7 years ago

Commit ed288dc1 parent 34f8fe52 files · +39 −18Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/backing-dev.h+2−0
@@ -230,6 +230,8 @@ static inline int bdi_sched_wait(void *word) · 229 unmodified lines
230struct bdi_writeback_congested *230struct bdi_writeback_congested *
231wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp);231wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp);
232void wb_congested_put(struct bdi_writeback_congested *congested);232void wb_congested_put(struct bdi_writeback_congested *congested);
233struct bdi_writeback *wb_get_lookup(struct backing_dev_info *bdi,
234 struct cgroup_subsys_state *memcg_css);
233struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi,235struct 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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t