diff options
Diffstat (limited to 'fs/nfs/nfs4namespace.c')
-rw-r--r-- | fs/nfs/nfs4namespace.c | 8 |
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 | */ |
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 || |