diff options
author | David Howells <dhowells@redhat.com> | 2015-10-21 09:04:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-10-21 10:18:36 -0400 |
commit | 146aa8b1453bd8f1ff2304ffb71b4ee0eb9acdcc (patch) | |
tree | a89ef2cd2e8029b0c09a58739cca0e7e2e68f4db /fs/fscache | |
parent | 4adc605edc5f744dcf432241b5996ff6a13d868c (diff) |
KEYS: Merge the type-specific data with the payload data
Merge the type-specific data with the payload data into one four-word chunk
as it seems pointless to keep them separate.
Use user_key_payload() for accessing the payloads of overloaded
user-defined keys.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cifs@vger.kernel.org
cc: ecryptfs@vger.kernel.org
cc: linux-ext4@vger.kernel.org
cc: linux-f2fs-devel@lists.sourceforge.net
cc: linux-nfs@vger.kernel.org
cc: ceph-devel@vger.kernel.org
cc: linux-ima-devel@lists.sourceforge.net
Diffstat (limited to 'fs/fscache')
-rw-r--r-- | fs/fscache/object-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fscache/object-list.c b/fs/fscache/object-list.c index 51dde817e1f2..6b028b7c4250 100644 --- a/fs/fscache/object-list.c +++ b/fs/fscache/object-list.c | |||
@@ -316,7 +316,7 @@ static const struct seq_operations fscache_objlist_ops = { | |||
316 | static void fscache_objlist_config(struct fscache_objlist_data *data) | 316 | static void fscache_objlist_config(struct fscache_objlist_data *data) |
317 | { | 317 | { |
318 | #ifdef CONFIG_KEYS | 318 | #ifdef CONFIG_KEYS |
319 | struct user_key_payload *confkey; | 319 | const struct user_key_payload *confkey; |
320 | unsigned long config; | 320 | unsigned long config; |
321 | struct key *key; | 321 | struct key *key; |
322 | const char *buf; | 322 | const char *buf; |
@@ -329,7 +329,7 @@ static void fscache_objlist_config(struct fscache_objlist_data *data) | |||
329 | config = 0; | 329 | config = 0; |
330 | rcu_read_lock(); | 330 | rcu_read_lock(); |
331 | 331 | ||
332 | confkey = key->payload.data; | 332 | confkey = user_key_payload(key); |
333 | buf = confkey->data; | 333 | buf = confkey->data; |
334 | 334 | ||
335 | for (len = confkey->datalen - 1; len >= 0; len--) { | 335 | for (len = confkey->datalen - 1; len >= 0; len--) { |