diff options
author | Dan Williams <dan.j.williams@intel.com> | 2019-05-20 13:44:57 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-05-21 08:23:41 +0100 |
commit | 1a6e9e76b713d9632783efe78295ed3507fdad64 (patch) | |
tree | 05e0a69c1ddeeba9b59d34eccb1f043e4643e4b7 | |
parent | 7e5f7bb08b8cefd3a7e8961861f47fe1f0e830d4 (diff) |
device-dax: Drop register_filesystem()
The device-dax fs is only there to allocate a common inode for each
device-node that refers to the same device by major:minor. It is
otherwise not user mountable and need not be displayed in
/proc/filesystems.
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | drivers/dax/super.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dax/super.c b/drivers/dax/super.c index bbd57ca0634a..35f051efaf35 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -630,10 +630,6 @@ static int dax_fs_init(void) if (!dax_cache) return -ENOMEM; - rc = register_filesystem(&dax_fs_type); - if (rc) - goto err_register_fs; - dax_mnt = kern_mount(&dax_fs_type); if (IS_ERR(dax_mnt)) { rc = PTR_ERR(dax_mnt); @@ -644,8 +640,6 @@ static int dax_fs_init(void) return 0; err_mount: - unregister_filesystem(&dax_fs_type); - err_register_fs: kmem_cache_destroy(dax_cache); return rc; @@ -654,7 +648,6 @@ static int dax_fs_init(void) static void dax_fs_exit(void) { kern_unmount(dax_mnt); - unregister_filesystem(&dax_fs_type); kmem_cache_destroy(dax_cache); } |