fscrypt: Delay bounce page pool allocation until needed

Since fscrypt users can now indicated if fscrypt_encrypt_page() should
use a bounce page, we can delay the bounce page pool initialization util
it is really needed. That is until fscrypt_operations has no
FS_CFLG_OWN_PAGES flag set.

Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
David Gstir
2016-12-06 23:53:57 +01:00
committed by Theodore Ts'o
parent bd7b829038
commit f32d7ac20a
4 changed files with 9 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ struct fscrypt_completion_result {
/* crypto.c */
int fscrypt_initialize(void);
int fscrypt_initialize(unsigned int cop_flags);
/* keyinfo.c */
extern int fscrypt_get_crypt_info(struct inode *);