aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-08-22 09:09:11 -0400
committerJames Morris <jmorris@namei.org>2011-08-22 19:57:36 -0400
commit8bc16deabce7649e480e94b648c88d4e90c34352 (patch)
treed9e28a921375e7448801b0b89ff43a7e0d2e61ff /security/keys/internal.h
parent012146d0728f85f7a5c7c36fb84bba33e2760507 (diff)
KEYS: Move the unreferenced key reaper to the keys garbage collector file
Move the unreferenced key reaper function to the keys garbage collector file as that's a more appropriate place with the dead key link reaper. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/keys/internal.h')
-rw-r--r--security/keys/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h
index f375152a2500..a7cd1a682321 100644
--- a/security/keys/internal.h
+++ b/security/keys/internal.h
@@ -75,6 +75,7 @@ extern unsigned key_quota_maxbytes;
75#define KEYQUOTA_LINK_BYTES 4 /* a link in a keyring is worth 4 bytes */ 75#define KEYQUOTA_LINK_BYTES 4 /* a link in a keyring is worth 4 bytes */
76 76
77 77
78extern struct kmem_cache *key_jar;
78extern struct rb_root key_serial_tree; 79extern struct rb_root key_serial_tree;
79extern spinlock_t key_serial_lock; 80extern spinlock_t key_serial_lock;
80extern struct mutex key_construction_mutex; 81extern struct mutex key_construction_mutex;
@@ -146,6 +147,7 @@ extern key_ref_t lookup_user_key(key_serial_t id, unsigned long flags,
146 147
147extern long join_session_keyring(const char *name); 148extern long join_session_keyring(const char *name);
148 149
150extern struct work_struct key_gc_unused_work;
149extern unsigned key_gc_delay; 151extern unsigned key_gc_delay;
150extern void keyring_gc(struct key *keyring, time_t limit); 152extern void keyring_gc(struct key *keyring, time_t limit);
151extern void key_schedule_gc(time_t expiry_at); 153extern void key_schedule_gc(time_t expiry_at);