summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-21 19:25:50 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 10:13:00 -0800
commit74fd8d9927ef08db30a85f131a124152aeba66c7 (patch)
tree7d9acc9ac7ea5196baa96de29fc18a0903299aec /fs/f2fs/f2fs.h
parent7441ccef339f87abc27afc4ccfc24c014d7360c9 (diff)
downloadlinux-74fd8d9927ef08db30a85f131a124152aeba66c7.tar.gz
linux-74fd8d9927ef08db30a85f131a124152aeba66c7.tar.bz2
linux-74fd8d9927ef08db30a85f131a124152aeba66c7.zip
f2fs: speed up shrinking extent tree entries
If there is no candidates for shrinking slab entries, we don't need to traverse any trees at all. Reviewed-by: Chao Yu <chao2.yu@samsung.com> [Jaegeuk Kim: fix missing initialization reported by Yunlei He] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index a7f619182cec..90fb970e2b98 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -763,6 +763,7 @@ struct f2fs_sb_info {
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 */
+ atomic_t total_zombie_tree; /* extent zombie tree count */
atomic_t total_ext_node; /* extent info count */
/* basic filesystem units */