]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc336a8fd3541006877d4e76327252a24b865f674
treeb2d64ef7305d32d4da2fc45946a980ee85a212cc
parentd7b5a2eeea08370d8f054f5cda38dca61f1f4a64
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