f2fs: introduce sb_lock to make encrypt pwsalt update exclusive
authorChao Yu <yuchao0@huawei.com>
Sun, 11 Feb 2018 14:53:20 +0000 (22:53 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:11:21 +0000 (04:11 -0700)
commitef66237f28e909ae052a01886778245a8c0c87e3
treeef6569e8fc452c6fd103a019a05affc86b64905c
parentc8e77267ed1f529b58f1e3b13e20f3bb27f674d3
f2fs: introduce sb_lock to make encrypt pwsalt update exclusive

f2fs_super_block.encrypt_pw_salt can be udpated and persisted
concurrently, result in getting different pwsalt in separated
threads, so let's introduce sb_lock to exclude concurrent
accessers.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/super.c