aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4namespace.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/nfs4namespace.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/nfs4namespace.c')
-rw-r--r--fs/nfs/nfs4namespace.c8
1 files changed, 4 insertions, 4 deletions
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 */
26static inline char *nfs4_pathname_string(struct nfs4_pathname *pathname, 26static 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 */
61static struct vfsmount *nfs_follow_referral(const struct vfsmount *mnt_parent, 61static 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 ||