f2fs: cover update_free_nid_bitmap with nid_list_lock
authorChao Yu <yuchao0@huawei.com>
Mon, 13 Mar 2017 12:10:41 +0000 (20:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:32 +0000 (22:34 -0400)
commit346fe752c431bcef5d05614263a4b4a0cfe88e10
tree39de2def9f4b6df8e22d647e2c8d6ea5307c98c7
parenta83d50bc16c4f5d0a359790015b5b32f3f0e52db
f2fs: cover update_free_nid_bitmap with nid_list_lock

free_nid_bitmap and free_nid_count in update_free_nid_bitmap should be
updated atomically, use nid_list_lock cover them to avoid race in
concurrent scenario.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/node.c