Commit 1f58bb18 authored by Al Viro's avatar Al Viro
Browse files

mount_pseudo(): drop 'name' argument, switch to d_make_root()



Once upon a time we used to set ->d_name of e.g. pipefs root
so that d_path() on pipes would work.  These days it's
completely pointless - dentries of pipes are not even connected
to pipefs root.  However, mount_pseudo() had set the root
dentry name (passed as the second argument) and callers
kept inventing names to pass to it.  Including those that
didn't *have* any non-root dentries to start with...

All of that had been pointless for about 8 years now; it's
time to get rid of that cargo-culting...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1a6e9e76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -602,7 +602,7 @@ static const struct dentry_operations pfmfs_dentry_operations;
static struct dentry *
pfmfs_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data)
{
	return mount_pseudo(fs_type, "pfm:", NULL, &pfmfs_dentry_operations,
	return mount_pseudo(fs_type, NULL, &pfmfs_dentry_operations,
			PFMFS_MAGIC);
}

+1 −1
Original line number Diff line number Diff line
@@ -440,7 +440,7 @@ static const struct super_operations dax_sops = {
static struct dentry *dax_mount(struct file_system_type *fs_type,
		int flags, const char *dev_name, void *data)
{
	return mount_pseudo(fs_type, "dax:", &dax_sops, NULL, DAXFS_MAGIC);
	return mount_pseudo(fs_type, &dax_sops, NULL, DAXFS_MAGIC);
}

static struct file_system_type dax_fs_type = {
+1 −5
Original line number Diff line number Diff line
@@ -535,11 +535,7 @@ static struct vfsmount *drm_fs_mnt;
static struct dentry *drm_fs_mount(struct file_system_type *fs_type, int flags,
				   const char *dev_name, void *data)
{
	return mount_pseudo(fs_type,
			    "drm:",
			    NULL,
			    NULL,
			    0x010203ff);
	return mount_pseudo(fs_type, NULL, NULL, 0x010203ff);
}

static struct file_system_type drm_fs_type = {
+1 −2
Original line number Diff line number Diff line
@@ -40,8 +40,7 @@ static struct vfsmount *cxl_vfs_mount;
static struct dentry *cxl_fs_mount(struct file_system_type *fs_type, int flags,
				const char *dev_name, void *data)
{
	return mount_pseudo(fs_type, "cxl:", NULL, NULL,
			CXL_PSEUDO_FS_MAGIC);
	return mount_pseudo(fs_type, NULL, NULL, CXL_PSEUDO_FS_MAGIC);
}

static struct file_system_type cxl_fs_type = {
+1 −2
Original line number Diff line number Diff line
@@ -48,8 +48,7 @@ static struct dentry *ocxlflash_fs_mount(struct file_system_type *fs_type,
					 int flags, const char *dev_name,
					 void *data)
{
	return mount_pseudo(fs_type, "ocxlflash:", NULL, NULL,
			    OCXLFLASH_FS_MAGIC);
	return mount_pseudo(fs_type, NULL, NULL, OCXLFLASH_FS_MAGIC);
}

static struct file_system_type ocxlflash_fs_type = {
Loading