summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2017-02-23 19:39:59 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-27 09:59:53 -0800
commit5e8256ac2e378089a1bf3fae87370811b1d31625 (patch)
tree43a8db726ba16de12521ab9a3913540fed8b28a8 /fs/f2fs/f2fs.h
parent3f2be04304cf10f2ef074399f8dd565bd00ddcae (diff)
downloadlinux-5e8256ac2e378089a1bf3fae87370811b1d31625.tar.bz2
f2fs: replace rw semaphore extent_tree_lock with mutex lock
This patch replace rw semaphore extent_tree_lock with mutex lock for no read cases with this lock. Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
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 6efb2d91f5a1..e26cc6909a54 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -844,7 +844,7 @@ struct f2fs_sb_info {
/* for extent tree cache */
struct radix_tree_root extent_tree_root;/* cache extent cache entries */
- struct rw_semaphore extent_tree_lock; /* locking extent radix tree */
+ struct mutex extent_tree_lock; /* locking extent radix tree */
struct list_head extent_list; /* lru list for shrinker */
spinlock_t extent_lock; /* locking extent lru list */
atomic_t total_ext_tree; /* extent tree count */