diff mbox series

[PATCHv2,1/3] fs: export put_filesystem()

Message ID 20190805160307.5418-2-sergey.senozhatsky@gmail.com (mailing list archive)
State New, archived
Headers show
Series convert i915 to new mount API | expand

Commit Message

Sergey Senozhatsky Aug. 5, 2019, 4:03 p.m. UTC
Modules can use get_fs_type(), which is exported, but are unable
to put_filesystem(). Export it and let modules to also decrement
corresponding file systems' reference counters.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 fs/filesystems.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/filesystems.c b/fs/filesystems.c
index 9135646e41ac..02669839b584 100644
--- a/fs/filesystems.c
+++ b/fs/filesystems.c
@@ -45,6 +45,7 @@  void put_filesystem(struct file_system_type *fs)
 {
 	module_put(fs->owner);
 }
+EXPORT_SYMBOL(put_filesystem);
 
 static struct file_system_type **find_filesystem(const char *name, unsigned len)
 {