diff options
author | Yunlei He <heyunlei@huawei.com> | 2017-02-23 19:39:59 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-27 09:59:53 -0800 |
commit | 5e8256ac2e378089a1bf3fae87370811b1d31625 (patch) | |
tree | 43a8db726ba16de12521ab9a3913540fed8b28a8 /fs/f2fs/f2fs.h | |
parent | 3f2be04304cf10f2ef074399f8dd565bd00ddcae (diff) | |
download | op-kernel-dev-5e8256ac2e378089a1bf3fae87370811b1d31625.zip op-kernel-dev-5e8256ac2e378089a1bf3fae87370811b1d31625.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 6efb2d9..e26cc69 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 */ |