Commit 62bf42ad authored by Jan Kara's avatar Jan Kara Committed by Jens Axboe

bdi: Export bdi_alloc_node() and bdi_put()

MTD will want to call bdi_alloc_node() and bdi_put() directly. Export
these functions.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 5af110b2
...@@ -855,6 +855,7 @@ struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id) ...@@ -855,6 +855,7 @@ struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id)
} }
return bdi; return bdi;
} }
EXPORT_SYMBOL(bdi_alloc_node);
int bdi_register_va(struct backing_dev_info *bdi, struct device *parent, int bdi_register_va(struct backing_dev_info *bdi, struct device *parent,
const char *fmt, va_list args) const char *fmt, va_list args)
...@@ -971,6 +972,7 @@ void bdi_put(struct backing_dev_info *bdi) ...@@ -971,6 +972,7 @@ void bdi_put(struct backing_dev_info *bdi)
{ {
kref_put(&bdi->refcnt, release_bdi); kref_put(&bdi->refcnt, release_bdi);
} }
EXPORT_SYMBOL(bdi_put);
void bdi_destroy(struct backing_dev_info *bdi) void bdi_destroy(struct backing_dev_info *bdi)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment