]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs crypto: handle unexpected lack of encryption keys
authorChao Yu <chao2.yu@samsung.com>
Sun, 14 Feb 2016 10:58:35 +0000 (18:58 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
commitdb9487997717cd07b973857b54449b00bce46a23
tree7868f8e4b1850e6f4ea2492567203ccae695c7ee
parenteaf32abea5205ac4ec1d63e76f30ed62d99a9524
f2fs crypto: handle unexpected lack of encryption keys

This patch syncs f2fs with commit 9a592a00b0d6 ("ext4 crypto: handle
unexpected lack of encryption keys") from ext4.

Fix up attempts by users to try to write to a file when they don't
have access to the encryption key.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/crypto_policy.c
fs/f2fs/file.c