f2fs: introduce fi->i_sem to protect fi's info
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 20 Mar 2014 10:10:08 +0000 (19:10 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 20 Mar 2014 13:10:11 +0000 (22:10 +0900)
commitd928bfbfe77aa457b765c19e9db8cd4cc72b3c89
treef56763175e0fbee1e2079c9a330f3d73f971bc5c
parent58c410351eba3d24f741c85a0eb9eaf15c94047d
f2fs: introduce fi->i_sem to protect fi's info

This patch introduces fi->i_sem to protect fi's info that includes xattr_ver,
pino, i_nlink.
This enables to remove i_mutex during f2fs_sync_file, resulting in performance
improvement when a number of fsync calls are triggered from many concurrent
threads.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/namei.c
fs/f2fs/super.c
fs/f2fs/xattr.c