From: Christoph Hellwig Date: Fri, 5 Nov 2021 20:36:52 +0000 (-0700) Subject: mm: export bdi_unregister X-Git-Tag: v5.16-rc1~106^2~215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6fd3ac0fc859da57404c3bad64696d48a6f425e;p=thirdparty%2Flinux.git mm: export bdi_unregister Patch series "simplify bdi unregistation". This series simplifies the BDI code to get rid of the magic auto-unregister feature that hid a recent block layer refcounting bug. This patch (of 5): To wind down the magic auto-unregister semantics we'll need to push this into modular code. Link: https://lkml.kernel.org/r/20211021124441.668816-1-hch@lst.de Link: https://lkml.kernel.org/r/20211021124441.668816-2-hch@lst.de Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Cc: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 4a9d4e27d0d9b..8a46a0a4b72fa 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -958,6 +958,7 @@ void bdi_unregister(struct backing_dev_info *bdi) bdi->owner = NULL; } } +EXPORT_SYMBOL(bdi_unregister); static void release_bdi(struct kref *ref) {