History

bdi: simplify bdi_alloc

Merge the _node vs normal version and drop the superflous gfp_t argument.

Christoph Hellwig committed 6 years ago

Commit aef33c21 parent 3c5d2025 files · +7 −12Browse files

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

Unified · Split

include/linux/backing-dev.h+1−5
@@ -36,11 +36,7 @@ int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, · 35 unmodified lines
36void bdi_set_owner(struct backing_dev_info *bdi, struct device *owner);36void bdi_set_owner(struct backing_dev_info *bdi, struct device *owner);
37void bdi_unregister(struct backing_dev_info *bdi);37void bdi_unregister(struct backing_dev_info *bdi);
38 38
39struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id);39struct backing_dev_info *bdi_alloc(int node_id);
40static inline struct backing_dev_info *bdi_alloc(gfp_t gfp_mask)
41{
42 return bdi_alloc_node(gfp_mask, NUMA_NO_NODE);
43}
44 40
45void wb_start_background_writeback(struct bdi_writeback *wb);41void wb_start_background_writeback(struct bdi_writeback *wb);
46void wb_workfn(struct work_struct *work);42void wb_workfn(struct work_struct *work);