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:

committed by
Theodore Ts'o

parent
bd7b829038
commit
f32d7ac20a
@@ -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 *);
|
||||
|
Reference in New Issue
Block a user