f2fs crypto: split f2fs_crypto_init/exit with two parts
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 15 May 2015 22:37:24 +0000 (15:37 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:20:59 +0000 (16:20 -0700)
commitcfc4d971df411c68e27d903f749e0f6fffd9da40
tree912d0fe1b1492daf8fe8ff3322092aba8554b4b5
parentb9da898b05859ac4a0ea4460d798b6bb655790f3
f2fs crypto: split f2fs_crypto_init/exit with two parts

This patch splits f2fs_crypto_init/exit with two parts: base initialization and
memory allocation.

Firstly, f2fs module declares the base encryption memory pointers.
Then, allocating internal memories is done at the first encrypted inode access.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/crypto.c
fs/f2fs/crypto_key.c
fs/f2fs/f2fs.h
fs/f2fs/super.c