[Devel] [PATCH rh7 4/6] Revert "fs: add data pointer to mount_ns()"
Vladimir Davydov
vdavydov at parallels.com
Thu Jul 23 08:10:01 PDT 2015
This reverts commit 69e6ae7f750fc862c9324441130abbff2c8b528e.
This is only needed for per-ns filesystems that can accept user options.
There is the only such a filesystem, devtmpfs, which we made per
container. Since devtmpfs virtualization is going to be dropped, this
patch is not necessary.
---
drivers/base/devtmpfs.c | 4 ++--
fs/binfmt_misc.c | 2 +-
fs/nfsd/nfsctl.c | 2 +-
fs/super.c | 4 ++--
include/linux/fs.h | 2 +-
ipc/mqueue.c | 2 +-
net/sunrpc/rpc_pipe.c | 2 +-
7 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
index 349d6eb88bde..6f4ba37f22fa 100644
--- a/drivers/base/devtmpfs.c
+++ b/drivers/base/devtmpfs.c
@@ -59,9 +59,9 @@ static struct dentry *dev_mount(struct file_system_type *fs_type, int flags,
const char *dev_name, void *data)
{
#ifdef CONFIG_TMPFS
- return mount_ns(fs_type, flags, data, get_exec_env(), shmem_fill_super);
+ return mount_ns(fs_type, flags, data, shmem_fill_super);
#else
- return mount_ns(fs_type, flags, data, get_exec_env(), ramfs_fill_super);
+ return mount_ns(fs_type, flags, data, ramfs_fill_super);
#endif
}
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 460d53febbe4..7e760d2bde32 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -734,7 +734,7 @@ static int bm_fill_super(struct super_block * sb, void * data, int silent)
static struct dentry *bm_mount(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data)
{
- return mount_ns(fs_type, flags, data, get_exec_env(), bm_fill_super);
+ return mount_ns(fs_type, flags, get_exec_env(), bm_fill_super);
}
static struct linux_binfmt misc_format = {
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 74575f9de340..c6a4ab6bf793 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1082,7 +1082,7 @@ static int nfsd_fill_super(struct super_block * sb, void * data, int silent)
static struct dentry *nfsd_mount(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data)
{
- return mount_ns(fs_type, flags, NULL, current->nsproxy->net_ns, nfsd_fill_super);
+ return mount_ns(fs_type, flags, current->nsproxy->net_ns, nfsd_fill_super);
}
static void nfsd_umount(struct super_block *sb)
diff --git a/fs/super.c b/fs/super.c
index 1c53f52e59f9..0978586ed868 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -917,11 +917,11 @@ static int ns_set_super(struct super_block *sb, void *data)
}
struct dentry *mount_ns(struct file_system_type *fs_type, int flags,
- void *data, void *ns, int (*fill_super)(struct super_block *, void *, int))
+ void *data, int (*fill_super)(struct super_block *, void *, int))
{
struct super_block *sb;
- sb = sget(fs_type, ns_test_super, ns_set_super, flags, ns);
+ sb = sget(fs_type, ns_test_super, ns_set_super, flags, data);
if (IS_ERR(sb))
return ERR_CAST(sb);
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 055e0569965a..e0dca856e9fb 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2005,7 +2005,7 @@ struct file_system_type {
#define MODULE_ALIAS_FS(NAME) MODULE_ALIAS("fs-" NAME)
extern struct dentry *mount_ns(struct file_system_type *fs_type, int flags,
- void *data, void *ns, int (*fill_super)(struct super_block *, void *, int));
+ void *data, int (*fill_super)(struct super_block *, void *, int));
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));
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index c5f1d3efc22d..18620cdde42e 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -341,7 +341,7 @@ static struct dentry *mqueue_mount(struct file_system_type *fs_type,
data = ns;
}
- return mount_ns(fs_type, flags, NULL, data, mqueue_fill_super);
+ return mount_ns(fs_type, flags, data, mqueue_fill_super);
}
static void init_once(void *foo)
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index b874a5c4356e..c554527469e9 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1457,7 +1457,7 @@ static struct dentry *
rpc_mount(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data)
{
- return mount_ns(fs_type, flags, NULL, current->nsproxy->net_ns, rpc_fill_super);
+ return mount_ns(fs_type, flags, current->nsproxy->net_ns, rpc_fill_super);
}
static void rpc_kill_sb(struct super_block *sb)
--
2.1.4
More information about the Devel
mailing list