diff options
author | Chao Yu <chao2.yu@samsung.com> | 2016-01-08 20:22:52 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-08 11:57:11 -0800 |
commit | 68e353851002dc07555b067a0baff1cc2f709c04 (patch) | |
tree | 702bfaa3ff203a120cb550550d41aef77c636952 /fs/f2fs/f2fs.h | |
parent | da5af127a1a17bac121c6889c88cc90f8a278a84 (diff) | |
download | blackbird-obmc-linux-68e353851002dc07555b067a0baff1cc2f709c04.tar.gz blackbird-obmc-linux-68e353851002dc07555b067a0baff1cc2f709c04.zip |
f2fs: use atomic type for node count in extent tree
1. rename field in struct extent_tree from count to node_cnt for
readability.
2. alter to use atomic type for node_cnt.
Signed-off-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 412865482a0b..ae0007df6c2c 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -361,7 +361,7 @@ struct extent_tree { struct extent_info largest; /* largested extent info */ struct list_head list; /* to be used by sbi->zombie_list */ rwlock_t lock; /* protect extent info rb-tree */ - unsigned int count; /* # of extent node in rb-tree*/ + atomic_t node_cnt; /* # of extent node in rb-tree*/ }; /* |