diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/namespace.c | 3 | ||||
-rw-r--r-- | fs/nfs/nfs3proc.c | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4namespace.c | 8 | ||||
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 | ||||
-rw-r--r-- | fs/nfs/proc.c | 2 | ||||
-rw-r--r-- | fs/nfs/super.c | 10 |
6 files changed, 14 insertions, 13 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index 86b3169c8cac..85d9ed1dcf42 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
@@ -172,7 +172,8 @@ void nfs_release_automount_timer(void) | |||
172 | /* | 172 | /* |
173 | * Clone a mountpoint of the appropriate type | 173 | * Clone a mountpoint of the appropriate type |
174 | */ | 174 | */ |
175 | static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, char *devname, | 175 | static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, |
176 | const char *devname, | ||
176 | struct nfs_clone_mount *mountdata) | 177 | struct nfs_clone_mount *mountdata) |
177 | { | 178 | { |
178 | #ifdef CONFIG_NFS_V4 | 179 | #ifdef CONFIG_NFS_V4 |
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 7143b1f82cea..3e5371241cea 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c | |||
@@ -886,7 +886,7 @@ nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl) | |||
886 | return nlmclnt_proc(filp->f_dentry->d_inode, cmd, fl); | 886 | return nlmclnt_proc(filp->f_dentry->d_inode, cmd, fl); |
887 | } | 887 | } |
888 | 888 | ||
889 | struct nfs_rpc_ops nfs_v3_clientops = { | 889 | const struct nfs_rpc_ops nfs_v3_clientops = { |
890 | .version = 3, /* protocol version */ | 890 | .version = 3, /* protocol version */ |
891 | .dentry_ops = &nfs_dentry_operations, | 891 | .dentry_ops = &nfs_dentry_operations, |
892 | .dir_inode_ops = &nfs3_dir_inode_operations, | 892 | .dir_inode_ops = &nfs3_dir_inode_operations, |
diff --git a/fs/nfs/nfs4namespace.c b/fs/nfs/nfs4namespace.c index ea38d27b74e6..faed9bcba50f 100644 --- a/fs/nfs/nfs4namespace.c +++ b/fs/nfs/nfs4namespace.c | |||
@@ -23,7 +23,7 @@ | |||
23 | /* | 23 | /* |
24 | * Check if fs_root is valid | 24 | * Check if fs_root is valid |
25 | */ | 25 | */ |
26 | static inline char *nfs4_pathname_string(struct nfs4_pathname *pathname, | 26 | static inline char *nfs4_pathname_string(const struct nfs4_pathname *pathname, |
27 | char *buffer, ssize_t buflen) | 27 | char *buffer, ssize_t buflen) |
28 | { | 28 | { |
29 | char *end = buffer + buflen; | 29 | char *end = buffer + buflen; |
@@ -34,7 +34,7 @@ static inline char *nfs4_pathname_string(struct nfs4_pathname *pathname, | |||
34 | 34 | ||
35 | n = pathname->ncomponents; | 35 | n = pathname->ncomponents; |
36 | while (--n >= 0) { | 36 | while (--n >= 0) { |
37 | struct nfs4_string *component = &pathname->components[n]; | 37 | const struct nfs4_string *component = &pathname->components[n]; |
38 | buflen -= component->len + 1; | 38 | buflen -= component->len + 1; |
39 | if (buflen < 0) | 39 | if (buflen < 0) |
40 | goto Elong; | 40 | goto Elong; |
@@ -60,7 +60,7 @@ Elong: | |||
60 | */ | 60 | */ |
61 | static struct vfsmount *nfs_follow_referral(const struct vfsmount *mnt_parent, | 61 | static struct vfsmount *nfs_follow_referral(const struct vfsmount *mnt_parent, |
62 | const struct dentry *dentry, | 62 | const struct dentry *dentry, |
63 | struct nfs4_fs_locations *locations) | 63 | const struct nfs4_fs_locations *locations) |
64 | { | 64 | { |
65 | struct vfsmount *mnt = ERR_PTR(-ENOENT); | 65 | struct vfsmount *mnt = ERR_PTR(-ENOENT); |
66 | struct nfs_clone_mount mountdata = { | 66 | struct nfs_clone_mount mountdata = { |
@@ -108,7 +108,7 @@ static struct vfsmount *nfs_follow_referral(const struct vfsmount *mnt_parent, | |||
108 | 108 | ||
109 | loc = 0; | 109 | loc = 0; |
110 | while (loc < locations->nlocations && IS_ERR(mnt)) { | 110 | while (loc < locations->nlocations && IS_ERR(mnt)) { |
111 | struct nfs4_fs_location *location = &locations->locations[loc]; | 111 | const struct nfs4_fs_location *location = &locations->locations[loc]; |
112 | char *mnt_path; | 112 | char *mnt_path; |
113 | 113 | ||
114 | if (location == NULL || location->nservers <= 0 || | 114 | if (location == NULL || location->nservers <= 0 || |
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 803c31b88bb5..061be713b206 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -3761,7 +3761,7 @@ static struct inode_operations nfs4_file_inode_operations = { | |||
3761 | .listxattr = nfs4_listxattr, | 3761 | .listxattr = nfs4_listxattr, |
3762 | }; | 3762 | }; |
3763 | 3763 | ||
3764 | struct nfs_rpc_ops nfs_v4_clientops = { | 3764 | const struct nfs_rpc_ops nfs_v4_clientops = { |
3765 | .version = 4, /* protocol version */ | 3765 | .version = 4, /* protocol version */ |
3766 | .dentry_ops = &nfs4_dentry_operations, | 3766 | .dentry_ops = &nfs4_dentry_operations, |
3767 | .dir_inode_ops = &nfs4_dir_inode_operations, | 3767 | .dir_inode_ops = &nfs4_dir_inode_operations, |
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index b3899ea3229e..77676903e0f5 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -671,7 +671,7 @@ nfs_proc_lock(struct file *filp, int cmd, struct file_lock *fl) | |||
671 | } | 671 | } |
672 | 672 | ||
673 | 673 | ||
674 | struct nfs_rpc_ops nfs_v2_clientops = { | 674 | const struct nfs_rpc_ops nfs_v2_clientops = { |
675 | .version = 2, /* protocol version */ | 675 | .version = 2, /* protocol version */ |
676 | .dentry_ops = &nfs_dentry_operations, | 676 | .dentry_ops = &nfs_dentry_operations, |
677 | .dir_inode_ops = &nfs_dir_inode_operations, | 677 | .dir_inode_ops = &nfs_dir_inode_operations, |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index a41d516ed595..c97f30967955 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -329,10 +329,10 @@ static const char *nfs_pseudoflavour_to_name(rpc_authflavor_t flavour) | |||
329 | */ | 329 | */ |
330 | static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) | 330 | static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) |
331 | { | 331 | { |
332 | static struct proc_nfs_info { | 332 | static const struct proc_nfs_info { |
333 | int flag; | 333 | int flag; |
334 | char *str; | 334 | const char *str; |
335 | char *nostr; | 335 | const char *nostr; |
336 | } nfs_info[] = { | 336 | } nfs_info[] = { |
337 | { NFS_MOUNT_SOFT, ",soft", ",hard" }, | 337 | { NFS_MOUNT_SOFT, ",soft", ",hard" }, |
338 | { NFS_MOUNT_INTR, ",intr", "" }, | 338 | { NFS_MOUNT_INTR, ",intr", "" }, |
@@ -342,9 +342,9 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, | |||
342 | { NFS_MOUNT_NOACL, ",noacl", "" }, | 342 | { NFS_MOUNT_NOACL, ",noacl", "" }, |
343 | { 0, NULL, NULL } | 343 | { 0, NULL, NULL } |
344 | }; | 344 | }; |
345 | struct proc_nfs_info *nfs_infop; | 345 | const struct proc_nfs_info *nfs_infop; |
346 | char buf[12]; | 346 | char buf[12]; |
347 | char *proto; | 347 | const char *proto; |
348 | 348 | ||
349 | seq_printf(m, ",vers=%d", nfss->rpc_ops->version); | 349 | seq_printf(m, ",vers=%d", nfss->rpc_ops->version); |
350 | seq_printf(m, ",rsize=%d", nfss->rsize); | 350 | seq_printf(m, ",rsize=%d", nfss->rsize); |