fscrypt: Add in-place encryption mode
authorDavid Gstir <david@sigma-star.at>
Sun, 13 Nov 2016 21:20:44 +0000 (22:20 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Nov 2016 23:47:04 +0000 (18:47 -0500)
commit1c7dcf69eea3224474fe884a03b3e19b82d1101e
treeb2d64ef7305d32d4da2fc45946a980ee85a212cc
parentbc33b0ca11e3df467777a4fa7639ba488c9d4911
fscrypt: Add in-place encryption mode

ext4 and f2fs require a bounce page when encrypting pages. However, not
all filesystems will need that (eg. UBIFS). This is handled via a
flag on fscrypt_operations where a fs implementation can select in-place
encryption over using a bounce page (which is the default).

Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/crypto.c
include/linux/fscrypto.h