diff options
| author | Theodore Ts'o <tytso@google.com> | 2015-05-12 11:22:05 -0400 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-05-27 19:40:02 +0200 |
| commit | 36eb93e085932d9f7c3ab0ad70cd6693fca2936b (patch) | |
| tree | ee58b180ed1ba60cb845e5af97d89395b6dd328b /fs/ext4/ext4.h | |
| parent | 07e5e127f0af640c1e7435898f61a2665814a0d3 (diff) | |
ext4 crypto: use slab caches
Use slab caches the ext4_crypto_ctx and ext4_crypt_info structures for
slighly better memory efficiency and debuggability.
Change-Id: If47986e2e29fa181d113864dcd9d1cae79c72639
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: "Theodore Ts'o" <tytso@google.com>
Diffstat (limited to 'fs/ext4/ext4.h')
| -rw-r--r-- | fs/ext4/ext4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index c816a9b98..2cb40d575 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2057,6 +2057,7 @@ int ext4_get_policy(struct inode *inode, struct ext4_encryption_policy *policy); /* crypto.c */ +extern struct kmem_cache *ext4_crypt_info_cachep; bool ext4_valid_contents_enc_mode(uint32_t mode); uint32_t ext4_validate_encryption_key_size(uint32_t mode, uint32_t size); extern struct workqueue_struct *ext4_read_workqueue; |
