f2fs crypto: avoid f2fs_inherit_context for symlink
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 02:51:42 +0000 (19:51 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:21:07 +0000 (16:21 -0700)
This patch fixes to call f2fs_inherit_context twice for newly created symlink.
The original one is called by f2fs_add_link(), which invokes f2fs_setxattr.
If the second one is called again, f2fs_setxattr is triggered again with same
encryption index.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

No differences found