Skip to content

Commit

Permalink
NFS: Constify mount argument match tables
Browse files Browse the repository at this point in the history
The mount argument match tables should never be altered so constify them.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
  • Loading branch information
dhowells authored and amschuma-ntap committed Jan 15, 2020
1 parent 9954bf9 commit e0a626b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/nfs/fs_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ enum {
Opt_lookupcache_err
};

static match_table_t nfs_lookupcache_tokens = {
static const match_table_t nfs_lookupcache_tokens = {
{ Opt_lookupcache_all, "all" },
{ Opt_lookupcache_positive, "pos" },
{ Opt_lookupcache_positive, "positive" },
Expand All @@ -215,7 +215,7 @@ enum {
Opt_local_lock_err
};

static match_table_t nfs_local_lock_tokens = {
static const match_table_t nfs_local_lock_tokens = {
{ Opt_local_lock_all, "all" },
{ Opt_local_lock_flock, "flock" },
{ Opt_local_lock_posix, "posix" },
Expand All @@ -231,7 +231,7 @@ enum {
Opt_vers_err
};

static match_table_t nfs_vers_tokens = {
static const match_table_t nfs_vers_tokens = {
{ Opt_vers_2, "2" },
{ Opt_vers_3, "3" },
{ Opt_vers_4, "4" },
Expand Down

0 comments on commit e0a626b

Please sign in to comment.