diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2010-05-07 13:33:58 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-14 15:09:31 -0400 |
commit | a6d5ff64bae02438d914f088672cab1916153954 (patch) | |
tree | 67bccbe16525ac357a99f6e5f696c5ec4cee1d88 /fs | |
parent | 0f15c53d5b1829c10dd901f37b8263aa25ecf864 (diff) |
NFS: Clean up fscache_uniq mount option
Clean up: fscache_uniq takes a string, so it should be included
with the other string mount option definitions, by convention.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/super.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index ee051a40fac8..2f8b1157daa2 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -141,7 +141,6 @@ static const match_table_t nfs_mount_option_tokens = { | |||
141 | { Opt_resvport, "resvport" }, | 141 | { Opt_resvport, "resvport" }, |
142 | { Opt_noresvport, "noresvport" }, | 142 | { Opt_noresvport, "noresvport" }, |
143 | { Opt_fscache, "fsc" }, | 143 | { Opt_fscache, "fsc" }, |
144 | { Opt_fscache_uniq, "fsc=%s" }, | ||
145 | { Opt_nofscache, "nofsc" }, | 144 | { Opt_nofscache, "nofsc" }, |
146 | 145 | ||
147 | { Opt_port, "port=%s" }, | 146 | { Opt_port, "port=%s" }, |
@@ -171,6 +170,7 @@ static const match_table_t nfs_mount_option_tokens = { | |||
171 | { Opt_mountaddr, "mountaddr=%s" }, | 170 | { Opt_mountaddr, "mountaddr=%s" }, |
172 | 171 | ||
173 | { Opt_lookupcache, "lookupcache=%s" }, | 172 | { Opt_lookupcache, "lookupcache=%s" }, |
173 | { Opt_fscache_uniq, "fsc=%s" }, | ||
174 | 174 | ||
175 | { Opt_err, NULL } | 175 | { Opt_err, NULL } |
176 | }; | 176 | }; |
@@ -1050,14 +1050,6 @@ static int nfs_parse_mount_options(char *raw, | |||
1050 | kfree(mnt->fscache_uniq); | 1050 | kfree(mnt->fscache_uniq); |
1051 | mnt->fscache_uniq = NULL; | 1051 | mnt->fscache_uniq = NULL; |
1052 | break; | 1052 | break; |
1053 | case Opt_fscache_uniq: | ||
1054 | string = match_strdup(args); | ||
1055 | if (!string) | ||
1056 | goto out_nomem; | ||
1057 | kfree(mnt->fscache_uniq); | ||
1058 | mnt->fscache_uniq = string; | ||
1059 | mnt->options |= NFS_OPTION_FSCACHE; | ||
1060 | break; | ||
1061 | 1053 | ||
1062 | /* | 1054 | /* |
1063 | * options that take numeric values | 1055 | * options that take numeric values |
@@ -1388,6 +1380,14 @@ static int nfs_parse_mount_options(char *raw, | |||
1388 | return 0; | 1380 | return 0; |
1389 | }; | 1381 | }; |
1390 | break; | 1382 | break; |
1383 | case Opt_fscache_uniq: | ||
1384 | string = match_strdup(args); | ||
1385 | if (string == NULL) | ||
1386 | goto out_nomem; | ||
1387 | kfree(mnt->fscache_uniq); | ||
1388 | mnt->fscache_uniq = string; | ||
1389 | mnt->options |= NFS_OPTION_FSCACHE; | ||
1390 | break; | ||
1391 | 1391 | ||
1392 | /* | 1392 | /* |
1393 | * Special options | 1393 | * Special options |