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
3636 void bdi_set_owner(struct backing_dev_info *bdi, struct device *owner);
3737 void bdi_unregister(struct backing_dev_info *bdi);
3838
39−struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id);
40−static inline struct backing_dev_info *bdi_alloc(gfp_t gfp_mask)
41−{
42− return bdi_alloc_node(gfp_mask, NUMA_NO_NODE);
43−}
39+struct backing_dev_info *bdi_alloc(int node_id);
4440
4541 void wb_start_background_writeback(struct bdi_writeback *wb);
4642 void wb_workfn(struct work_struct *work);