]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs crypto: check context consistent for rename2
authorChao Yu <chao2.yu@samsung.com>
Mon, 25 May 2015 10:07:02 +0000 (18:07 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:21:05 +0000 (16:21 -0700)
commitd3baf7c4725601d4689397b9f7dde9e3ddea032d
tree5ad0bae1f48ef76cdcdcdc4cb04b707610d9c26c
parent12377024719f08b7411afe9fc0169b13808dfefa
f2fs crypto: check context consistent for rename2

For exchange rename, we should check context consistent of encryption
between new_dir and old_inode or old_dir and new_inode. Otherwise
inheritance of parent's encryption context will be broken.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
[Jaegeuk Kim: sync with ext4 approach]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c