f2fs crypto: add encryption key management facilities
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 21 Apr 2015 23:23:47 +0000 (16:23 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 22:41:49 +0000 (15:41 -0700)
commit0adda907f23df2e19355b58a20f0a7ff76587c6a
tree1ab172e639f055eddf80b6e679ba07445625e8c9
parent57e5055b0a5e33267b8be366ee52ce5cdc239bc7
f2fs crypto: add encryption key management facilities

This patch copies from encrypt_key.c in ext4, and modifies for f2fs.

Use GFP_NOFS, since _f2fs_get_encryption_info is called under f2fs_lock_op.

Signed-off-by: Michael Halcrow <mhalcrow@google.com>
Signed-off-by: Ildar Muslukhov <muslukhovi@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/Makefile
fs/f2fs/crypto_key.c [new file with mode: 0644]
fs/f2fs/f2fs.h
fs/f2fs/f2fs_crypto.h