diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-20 06:10:08 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-20 09:10:11 -0400 |
commit | d928bfbfe77aa457b765c19e9db8cd4cc72b3c89 (patch) | |
tree | f56763175e0fbee1e2079c9a330f3d73f971bc5c /fs/f2fs/f2fs.h | |
parent | 58c410351eba3d24f741c85a0eb9eaf15c94047d (diff) |
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 05c652493f04..469779ab1d77 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -210,6 +210,7 @@ struct f2fs_inode_info { | |||
210 | 210 | ||
211 | /* Use below internally in f2fs*/ | 211 | /* Use below internally in f2fs*/ |
212 | unsigned long flags; /* use to pass per-file flags */ | 212 | unsigned long flags; /* use to pass per-file flags */ |
213 | struct rw_semaphore i_sem; /* protect fi info */ | ||
213 | atomic_t dirty_dents; /* # of dirty dentry pages */ | 214 | atomic_t dirty_dents; /* # of dirty dentry pages */ |
214 | f2fs_hash_t chash; /* hash value of given file name */ | 215 | f2fs_hash_t chash; /* hash value of given file name */ |
215 | unsigned int clevel; /* maximum level of given file name */ | 216 | unsigned int clevel; /* maximum level of given file name */ |