]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: Remove mount_nodev
authorPedro Falcato <pfalcato@suse.de>
Wed, 23 Jul 2025 13:21:54 +0000 (14:21 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 11 Aug 2025 12:52:40 +0000 (14:52 +0200)
mount_nodev has had no in-tree users since
cc0876f817d6 ("vfs: Convert devpts to use the new mount API").
Remove it.

Signed-off-by: Pedro Falcato <pfalcato@suse.de>
Link: https://lore.kernel.org/20250723132156.225410-2-pfalcato@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/super.c
include/linux/fs.h

index 7f876f32343ad47fc082b72b2c521bcaaa2f6873..7daa20737f2ed4455bd1bfcd325dd8ab9f4054b2 100644 (file)
@@ -1773,26 +1773,6 @@ void kill_block_super(struct super_block *sb)
 EXPORT_SYMBOL(kill_block_super);
 #endif
 
-struct dentry *mount_nodev(struct file_system_type *fs_type,
-       int flags, void *data,
-       int (*fill_super)(struct super_block *, void *, int))
-{
-       int error;
-       struct super_block *s = sget(fs_type, NULL, set_anon_super, flags, NULL);
-
-       if (IS_ERR(s))
-               return ERR_CAST(s);
-
-       error = fill_super(s, data, flags & SB_SILENT ? 1 : 0);
-       if (error) {
-               deactivate_locked_super(s);
-               return ERR_PTR(error);
-       }
-       s->s_flags |= SB_ACTIVE;
-       return dget(s->s_root);
-}
-EXPORT_SYMBOL(mount_nodev);
-
 /**
  * vfs_get_tree - Get the mountable root
  * @fc: The superblock configuration context.
index d7ab4f96d7051f23246c1a16a2d09b1ffcd2d5de..204328ed7ebb3f42554578fcc31eb1d13771aa63 100644 (file)
@@ -2716,9 +2716,6 @@ static inline bool is_mgtime(const struct inode *inode)
 extern struct dentry *mount_bdev(struct file_system_type *fs_type,
        int flags, const char *dev_name, void *data,
        int (*fill_super)(struct super_block *, void *, int));
-extern struct dentry *mount_nodev(struct file_system_type *fs_type,
-       int flags, void *data,
-       int (*fill_super)(struct super_block *, void *, int));
 extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path);
 void retire_super(struct super_block *sb);
 void generic_shutdown_super(struct super_block *sb);