aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-11 11:42:01 -0400
committerZiyan <jaraidaniel@gmail.com>2016-04-03 14:55:53 +0200
commit45d83a2e45b4219f45dbf55c889c6514564aa9f0 (patch)
tree9e5cc21df8d12ada5c7eba6b557bbba67871f7e4 /fs
parent544fa45ee11c022960ad0a23cc78f27b48af891f (diff)
downloadkernel_samsung_tuna-45d83a2e45b4219f45dbf55c889c6514564aa9f0.zip
kernel_samsung_tuna-45d83a2e45b4219f45dbf55c889c6514564aa9f0.tar.gz
kernel_samsung_tuna-45d83a2e45b4219f45dbf55c889c6514564aa9f0.tar.bz2
consitify do_mount() arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> (cherry picked from commit 808d4e3cfdcc52b19276175464f6dbca4df13b09)
Diffstat (limited to 'fs')
-rw-r--r--fs/namespace.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 99a9f80..2932113 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1754,7 +1754,7 @@ static int do_change_type(struct path *path, int flag)
/*
* do loopback mount.
*/
-static int do_loopback(struct path *path, char *old_name,
+static int do_loopback(struct path *path, const char *old_name,
int recurse)
{
LIST_HEAD(umount_list);
@@ -1875,7 +1875,7 @@ static inline int tree_contains_unbindable(struct vfsmount *mnt)
return 0;
}
-static int do_move_mount(struct path *path, char *old_name)
+static int do_move_mount(struct path *path, const char *old_name)
{
struct path old_path, parent_path;
struct vfsmount *p;
@@ -2027,8 +2027,8 @@ unlock:
* create a new mount for userspace and request it to be added into the
* namespace's tree
*/
-static int do_new_mount(struct path *path, char *type, int flags,
- int mnt_flags, char *name, void *data)
+static int do_new_mount(struct path *path, const char *type, int flags,
+ int mnt_flags, const char *name, void *data)
{
struct vfsmount *mnt;
int err;
@@ -2300,8 +2300,8 @@ int copy_mount_string(const void __user *data, char **where)
* Therefore, if this magic number is present, it carries no information
* and must be discarded.
*/
-long do_mount(char *dev_name, char *dir_name, char *type_page,
- unsigned long flags, void *data_page)
+long do_mount(const char *dev_name, const char *dir_name,
+ const char *type_page, unsigned long flags, void *data_page)
{
struct path path;
int retval = 0;