diff options
Diffstat (limited to 'fs/namespace.c')
| -rw-r--r-- | fs/namespace.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 7bdf7907413f..24960626bb6b 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
| @@ -1640,7 +1640,7 @@ static int do_change_type(struct path *path, int flag) | |||
| 1640 | /* | 1640 | /* |
| 1641 | * do loopback mount. | 1641 | * do loopback mount. |
| 1642 | */ | 1642 | */ |
| 1643 | static int do_loopback(struct path *path, char *old_name, | 1643 | static int do_loopback(struct path *path, const char *old_name, |
| 1644 | int recurse) | 1644 | int recurse) |
| 1645 | { | 1645 | { |
| 1646 | LIST_HEAD(umount_list); | 1646 | LIST_HEAD(umount_list); |
| @@ -1764,7 +1764,7 @@ static inline int tree_contains_unbindable(struct mount *mnt) | |||
| 1764 | return 0; | 1764 | return 0; |
| 1765 | } | 1765 | } |
| 1766 | 1766 | ||
| 1767 | static int do_move_mount(struct path *path, char *old_name) | 1767 | static int do_move_mount(struct path *path, const char *old_name) |
| 1768 | { | 1768 | { |
| 1769 | struct path old_path, parent_path; | 1769 | struct path old_path, parent_path; |
| 1770 | struct mount *p; | 1770 | struct mount *p; |
| @@ -1917,8 +1917,8 @@ unlock: | |||
| 1917 | * create a new mount for userspace and request it to be added into the | 1917 | * create a new mount for userspace and request it to be added into the |
| 1918 | * namespace's tree | 1918 | * namespace's tree |
| 1919 | */ | 1919 | */ |
| 1920 | static int do_new_mount(struct path *path, char *type, int flags, | 1920 | static int do_new_mount(struct path *path, const char *type, int flags, |
| 1921 | int mnt_flags, char *name, void *data) | 1921 | int mnt_flags, const char *name, void *data) |
| 1922 | { | 1922 | { |
| 1923 | struct vfsmount *mnt; | 1923 | struct vfsmount *mnt; |
| 1924 | int err; | 1924 | int err; |
| @@ -2191,8 +2191,8 @@ int copy_mount_string(const void __user *data, char **where) | |||
| 2191 | * Therefore, if this magic number is present, it carries no information | 2191 | * Therefore, if this magic number is present, it carries no information |
| 2192 | * and must be discarded. | 2192 | * and must be discarded. |
| 2193 | */ | 2193 | */ |
| 2194 | long do_mount(char *dev_name, char *dir_name, char *type_page, | 2194 | long do_mount(const char *dev_name, const char *dir_name, |
| 2195 | unsigned long flags, void *data_page) | 2195 | const char *type_page, unsigned long flags, void *data_page) |
| 2196 | { | 2196 | { |
| 2197 | struct path path; | 2197 | struct path path; |
| 2198 | int retval = 0; | 2198 | int retval = 0; |
| @@ -2408,7 +2408,7 @@ SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name, | |||
| 2408 | { | 2408 | { |
| 2409 | int ret; | 2409 | int ret; |
| 2410 | char *kernel_type; | 2410 | char *kernel_type; |
| 2411 | char *kernel_dir; | 2411 | struct filename *kernel_dir; |
| 2412 | char *kernel_dev; | 2412 | char *kernel_dev; |
| 2413 | unsigned long data_page; | 2413 | unsigned long data_page; |
| 2414 | 2414 | ||
| @@ -2430,7 +2430,7 @@ SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name, | |||
| 2430 | if (ret < 0) | 2430 | if (ret < 0) |
| 2431 | goto out_data; | 2431 | goto out_data; |
| 2432 | 2432 | ||
| 2433 | ret = do_mount(kernel_dev, kernel_dir, kernel_type, flags, | 2433 | ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags, |
| 2434 | (void *) data_page); | 2434 | (void *) data_page); |
| 2435 | 2435 | ||
| 2436 | free_page(data_page); | 2436 | free_page(data_page); |
