aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-08-22 20:06:11 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:34 -0400
commit509de8111656a7d89b4a1a5f430f4460ce510f0f (patch)
tree94ec0130ab74a5c80956ca3edd3298999b3b9897 /fs/nfs/super.c
parent0c7d90cfed91a283228017ba6faf37ee0bcd32b1 (diff)
NFS: Add extra const qualifiers
Add some extra const qualifiers into NFS. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c10
1 files changed, 5 insertions, 5 deletions
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 */
330static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, int showdefaults) 330static 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);