f2fs crypto: allow setting encryption policy once
authorChao Yu <chao2.yu@samsung.com>
Mon, 25 May 2015 10:09:03 +0000 (18:09 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:21:06 +0000 (16:21 -0700)
commit81b0a8ffaa92012e63ea611e8aeb9e74acfcedac
treee221f74861a7329db0d80a771d3fad2afa80dc90
parentd3baf7c4725601d4689397b9f7dde9e3ddea032d
f2fs crypto: allow setting encryption policy once

This patch add XATTR_CREATE flag in setxattr when setting encryption
context for inode. Without this flag the context could be set more than
once, this should never happen. So, fix it.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/crypto_policy.c