Skip to content

Commit 62bf42a

Browse files
jankaraaxboe
authored andcommitted
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: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 5af110b commit 62bf42a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mm/backing-dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id)
855855
}
856856
return bdi;
857857
}
858+
EXPORT_SYMBOL(bdi_alloc_node);
858859

859860
int bdi_register_va(struct backing_dev_info *bdi, struct device *parent,
860861
const char *fmt, va_list args)
@@ -971,6 +972,7 @@ void bdi_put(struct backing_dev_info *bdi)
971972
{
972973
kref_put(&bdi->refcnt, release_bdi);
973974
}
975+
EXPORT_SYMBOL(bdi_put);
974976

975977
void bdi_destroy(struct backing_dev_info *bdi)
976978
{

0 commit comments

Comments
 (0)