]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fscrypt: Delay bounce page pool allocation until needed
authorDavid Gstir <david@sigma-star.at>
Tue, 6 Dec 2016 22:53:57 +0000 (23:53 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2016 21:33:11 +0000 (16:33 -0500)
commitf32d7ac20a5864483c1f96e4970daa083e18bfd1
treef381a5707d80076055bb23c14a5a2c134f3ae7df
parentbd7b8290388dd58a8c0a3710b171e58ef952ca4d
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>
fs/crypto/crypto.c
fs/crypto/fscrypt_private.h
fs/crypto/keyinfo.c
include/linux/fscrypto.h