Drop 'parent' argument of bdi_register() and bdi_register_va(). It is always NULL.
Showing the changes to include/linux/backing-dev.h (1 of 4 files). Show all
Unified · Split
| @@ -25,11 +25,10 @@ static inline struct backing_dev_info *bdi_get(struct backing_dev_info *bdi) · 24 unmodified lines | |||
| 25 | 25 | ||
| 26 | void bdi_put(struct backing_dev_info *bdi); | 26 | void bdi_put(struct backing_dev_info *bdi); |
| 27 | 27 | ||
| 28 | __printf(3, 4) | 28 | __printf(2, 3) |
| 29 | int bdi_register(struct backing_dev_info *bdi, struct device *parent, | 29 | int bdi_register(struct backing_dev_info *bdi, const char *fmt, ...); |
| 30 | const char *fmt, ...); | 30 | int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, |
| 31 | int bdi_register_va(struct backing_dev_info *bdi, struct device *parent, | 31 | va_list args); |
| 32 | const char *fmt, va_list args); | ||
| 33 | int bdi_register_owner(struct backing_dev_info *bdi, struct device *owner); | 32 | int bdi_register_owner(struct backing_dev_info *bdi, struct device *owner); |
| 34 | void bdi_unregister(struct backing_dev_info *bdi); | 33 | void bdi_unregister(struct backing_dev_info *bdi); |
| 35 | 34 | ||