f2fs: use inode mutex to keep atomicity of f2fs_falloc
authorChao Yu <chao2.yu@samsung.com>
Tue, 28 Jan 2014 02:29:26 +0000 (10:29 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 17 Feb 2014 05:58:53 +0000 (14:58 +0900)
commit3375f696bd9cfdfd385e2460a9cf021d8ef01eab
tree439ff4140f238286f7dbbfd5bf739723fcd96a07
parent1fe54f9dd3acfaa3ed4e1d1e3278fd0f1d1e98cd
f2fs: use inode mutex to keep atomicity of f2fs_falloc

Previously without protection of inode mutex, f2fs_falloc and other data
correlated operations will interfere with each other.
So let's use inode mutex to keep atomicity of f2fs_falloc.

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