aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2014-01-10 18:09:14 +0800
committerrogersb11 <brettrogers11@gmail.com>2016-02-13 21:24:30 -0500
commitaa8ad5b19ec0e09a1238b537fbf49b59d8770cfd (patch)
tree21505ad4eba822b2b872e0a0edf95aef070798bf /fs/f2fs/f2fs.h
parentb9065b59218718f4cf77e67143a59264b4466b08 (diff)
downloadkernel_samsung_smdk4412-aa8ad5b19ec0e09a1238b537fbf49b59d8770cfd.zip
kernel_samsung_smdk4412-aa8ad5b19ec0e09a1238b537fbf49b59d8770cfd.tar.gz
kernel_samsung_smdk4412-aa8ad5b19ec0e09a1238b537fbf49b59d8770cfd.tar.bz2
f2fs: use spinlock rather than mutex for better speed
With the 2 previous changes, all the long time operations are moved out of the protection region, so here we can use spinlock rather than mutex (orphan_inode_mutex) for lower overhead. Change-Id: Iafe2320add741da9e119de9f30b0f90799d68b27 Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 5334202..932be9f 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -413,7 +413,7 @@ struct f2fs_sb_info {
/* for orphan inode management */
struct list_head orphan_inode_list; /* orphan inode list */
- struct mutex orphan_inode_mutex; /* for orphan inode list */
+ spinlock_t orphan_inode_lock; /* for orphan inode list */
unsigned int n_orphans; /* # of orphan inodes */
unsigned int max_orphans; /* max orphan inodes */