]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: Allow fscrypt_decrypt_page() to function with non-writeback pages
authorDavid Gstir <david@sigma-star.at>
Sun, 13 Nov 2016 21:20:45 +0000 (22:20 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Nov 2016 23:53:10 +0000 (18:53 -0500)
commit39e4753fa58bdd3dda0cc689d4d8321aa6596228
tree7a4db96f6779146e5b9df84bd7d1cbb0d10e1032
parent2ebfd3e3669d0d91d0b1d15f1b1ccae905fc70d9
fscrypt: Allow fscrypt_decrypt_page() to function with non-writeback pages

Some filesystem might pass pages which do not have page->mapping->host
set to the encrypted inode. We want the caller to explicitly pass the
corresponding inode.

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
fs/ext4/inode.c
include/linux/fscrypto.h