diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:06 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:06 -0400 |
commit | c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (patch) | |
tree | 8bc0e3794ffb426b3cbb2c0d7c2dbbd4b28e3054 /fs/cifs | |
parent | 614d8c39014c185aa0f7254f0a470cc33fc1b284 (diff) |
KEYS: Remove key_type::match in favour of overriding default by match_preparse
A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.
The key_type::match op is then redundant and can be removed, as can the
user_match() function.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifs_spnego.c | 1 | ||||
-rw-r--r-- | fs/cifs/cifsacl.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/cifs_spnego.c b/fs/cifs/cifs_spnego.c index a3e932547617..f4cf200b3c76 100644 --- a/fs/cifs/cifs_spnego.c +++ b/fs/cifs/cifs_spnego.c | |||
@@ -62,7 +62,6 @@ cifs_spnego_key_destroy(struct key *key) | |||
62 | struct key_type cifs_spnego_key_type = { | 62 | struct key_type cifs_spnego_key_type = { |
63 | .name = "cifs.spnego", | 63 | .name = "cifs.spnego", |
64 | .instantiate = cifs_spnego_key_instantiate, | 64 | .instantiate = cifs_spnego_key_instantiate, |
65 | .match = user_match, | ||
66 | .destroy = cifs_spnego_key_destroy, | 65 | .destroy = cifs_spnego_key_destroy, |
67 | .describe = user_describe, | 66 | .describe = user_describe, |
68 | }; | 67 | }; |
diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index 7ff866dbb89e..6d00c419cbae 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c | |||
@@ -84,7 +84,6 @@ static struct key_type cifs_idmap_key_type = { | |||
84 | .instantiate = cifs_idmap_key_instantiate, | 84 | .instantiate = cifs_idmap_key_instantiate, |
85 | .destroy = cifs_idmap_key_destroy, | 85 | .destroy = cifs_idmap_key_destroy, |
86 | .describe = user_describe, | 86 | .describe = user_describe, |
87 | .match = user_match, | ||
88 | }; | 87 | }; |
89 | 88 | ||
90 | static char * | 89 | static char * |