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)
commitae1086686487f13130937918ca91d920c1daafcb
tree7868f8e4b1850e6f4ea2492567203ccae695c7ee
parented3360abbc0412f32c398e1c58887d74f3d04225
f2fs crypto: handle unexpected lack of encryption keys

This patch syncs f2fs with commit abdd438b26b4 ("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