diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-02-24 20:14:50 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-01 22:50:31 +0100 |
commit | 59e6b9c11341e3b8ac5925427c903d4eae435bd8 (patch) | |
tree | 68b39f847badedfca1476fbbf7ef6049a444f493 /include | |
parent | NFSv4.1: Get rid of NFS4CLNT_LAYOUTRECALL (diff) | |
download | linux-59e6b9c11341e3b8ac5925427c903d4eae435bd8.tar.xz linux-59e6b9c11341e3b8ac5925427c903d4eae435bd8.zip |
Created a function for setting timeouts on keys
The keyctl_set_timeout function isn't exported to other parts of the
kernel, but I want to use it for the NFS idmapper. I already have the
key, but I wanted a generic way to set the timeout.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/key.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/key.h b/include/linux/key.h index 5253471cd2ea..be3995d1024a 100644 --- a/include/linux/key.h +++ b/include/linux/key.h @@ -276,6 +276,8 @@ static inline key_serial_t key_serial(const struct key *key) return key ? key->serial : 0; } +extern void key_set_timeout(struct key *, unsigned); + /** * key_is_instantiated - Determine if a key has been positively instantiated * @key: The key to check. |