diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-21 19:20:15 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-22 10:31:41 -0800 |
commit | 7441ccef339f87abc27afc4ccfc24c014d7360c9 (patch) | |
tree | 6f1abef9d8a0841a14f12d78d577dd988304513f /fs/f2fs/f2fs.h | |
parent | 4cf185379b7504d640c9dd72f959f081b25f6ea2 (diff) | |
download | linux-7441ccef339f87abc27afc4ccfc24c014d7360c9.tar.bz2 |
f2fs: use atomic variable for total_extent_tree
It would be better to use atomic variable for total_extent_tree.
Reviewed-by: Chao Yu <chao2.yu@samsung.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 19beabefd839..a7f619182cec 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -762,7 +762,7 @@ struct f2fs_sb_info { struct rw_semaphore extent_tree_lock; /* locking extent radix tree */ struct list_head extent_list; /* lru list for shrinker */ spinlock_t extent_lock; /* locking extent lru list */ - int total_ext_tree; /* extent tree count */ + atomic_t total_ext_tree; /* extent tree count */ atomic_t total_ext_node; /* extent info count */ /* basic filesystem units */ |