fscrypt: move fscrypt_info_cachep declaration to fscrypt_private.h
authorEric Biggers <ebiggers@google.com>
Fri, 5 Jan 2018 18:44:54 +0000 (10:44 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Jan 2018 03:06:18 +0000 (22:06 -0500)
The fscrypt_info kmem_cache is internal to fscrypt; filesystems don't
need to access it.  So move its declaration into fscrypt_private.h.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/fscrypt_private.h
include/linux/fscrypt_supp.h

index c0b4f5597e1a3ee772d1c6ecba8f3b73033b74ba..823c43a00bf738627331ea3e1431d24ba660ce97 100644 (file)
@@ -72,6 +72,7 @@ typedef enum {
 #define FS_CTX_HAS_BOUNCE_BUFFER_FL            0x00000002
 
 /* crypto.c */
+extern struct kmem_cache *fscrypt_info_cachep;
 extern int fscrypt_initialize(unsigned int cop_flags);
 extern struct workqueue_struct *fscrypt_read_workqueue;
 extern int fscrypt_do_page_crypto(const struct inode *inode,
index ad40780d4653f59714c5f5023aa78405b03a3c17..33d641e27c18460ab952875d0283f4012292491c 100644 (file)
@@ -17,7 +17,6 @@ static inline bool fscrypt_has_encryption_key(const struct inode *inode)
 }
 
 /* crypto.c */
-extern struct kmem_cache *fscrypt_info_cachep;
 extern struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *, gfp_t);
 extern void fscrypt_release_ctx(struct fscrypt_ctx *);
 extern struct page *fscrypt_encrypt_page(const struct inode *, struct page *,