|
@@ -788,7 +788,7 @@ struct f2fs_sb_info {
|
|
unsigned int block_count[2]; /* # of allocated blocks */
|
|
unsigned int block_count[2]; /* # of allocated blocks */
|
|
atomic_t inplace_count; /* # of inplace update */
|
|
atomic_t inplace_count; /* # of inplace update */
|
|
atomic_t total_hit_ext; /* # of lookup extent cache */
|
|
atomic_t total_hit_ext; /* # of lookup extent cache */
|
|
- atomic_t read_hit_ext; /* # of hit extent cache */
|
|
|
|
|
|
+ atomic_t read_hit_rbtree; /* # of hit rbtree extent node */
|
|
atomic_t read_hit_largest; /* # of hit largest extent node */
|
|
atomic_t read_hit_largest; /* # of hit largest extent node */
|
|
atomic_t read_hit_cached; /* # of hit cached extent node */
|
|
atomic_t read_hit_cached; /* # of hit cached extent node */
|
|
atomic_t inline_xattr; /* # of inline_xattr inodes */
|
|
atomic_t inline_xattr; /* # of inline_xattr inodes */
|
|
@@ -1826,7 +1826,8 @@ struct f2fs_stat_info {
|
|
struct f2fs_sb_info *sbi;
|
|
struct f2fs_sb_info *sbi;
|
|
int all_area_segs, sit_area_segs, nat_area_segs, ssa_area_segs;
|
|
int all_area_segs, sit_area_segs, nat_area_segs, ssa_area_segs;
|
|
int main_area_segs, main_area_sections, main_area_zones;
|
|
int main_area_segs, main_area_sections, main_area_zones;
|
|
- int hit_largest, hit_cached, hit_ext, total_ext, ext_tree, ext_node;
|
|
|
|
|
|
+ int hit_largest, hit_cached, hit_rbtree, hit_total, total_ext;
|
|
|
|
+ int ext_tree, ext_node;
|
|
int ndirty_node, ndirty_dent, ndirty_dirs, ndirty_meta;
|
|
int ndirty_node, ndirty_dent, ndirty_dirs, ndirty_meta;
|
|
int nats, dirty_nats, sits, dirty_sits, fnids;
|
|
int nats, dirty_nats, sits, dirty_sits, fnids;
|
|
int total_count, utilization;
|
|
int total_count, utilization;
|
|
@@ -1863,7 +1864,7 @@ static inline struct f2fs_stat_info *F2FS_STAT(struct f2fs_sb_info *sbi)
|
|
#define stat_inc_dirty_dir(sbi) ((sbi)->n_dirty_dirs++)
|
|
#define stat_inc_dirty_dir(sbi) ((sbi)->n_dirty_dirs++)
|
|
#define stat_dec_dirty_dir(sbi) ((sbi)->n_dirty_dirs--)
|
|
#define stat_dec_dirty_dir(sbi) ((sbi)->n_dirty_dirs--)
|
|
#define stat_inc_total_hit(sbi) (atomic_inc(&(sbi)->total_hit_ext))
|
|
#define stat_inc_total_hit(sbi) (atomic_inc(&(sbi)->total_hit_ext))
|
|
-#define stat_inc_read_hit(sbi) (atomic_inc(&(sbi)->read_hit_ext))
|
|
|
|
|
|
+#define stat_inc_rbtree_node_hit(sbi) (atomic_inc(&(sbi)->read_hit_rbtree))
|
|
#define stat_inc_largest_node_hit(sbi) (atomic_inc(&(sbi)->read_hit_largest))
|
|
#define stat_inc_largest_node_hit(sbi) (atomic_inc(&(sbi)->read_hit_largest))
|
|
#define stat_inc_cached_node_hit(sbi) (atomic_inc(&(sbi)->read_hit_cached))
|
|
#define stat_inc_cached_node_hit(sbi) (atomic_inc(&(sbi)->read_hit_cached))
|
|
#define stat_inc_inline_xattr(inode) \
|
|
#define stat_inc_inline_xattr(inode) \
|
|
@@ -1945,7 +1946,7 @@ void f2fs_destroy_root_stats(void);
|
|
#define stat_inc_dirty_dir(sbi)
|
|
#define stat_inc_dirty_dir(sbi)
|
|
#define stat_dec_dirty_dir(sbi)
|
|
#define stat_dec_dirty_dir(sbi)
|
|
#define stat_inc_total_hit(sb)
|
|
#define stat_inc_total_hit(sb)
|
|
-#define stat_inc_read_hit(sb)
|
|
|
|
|
|
+#define stat_inc_rbtree_node_hit(sb)
|
|
#define stat_inc_largest_node_hit(sbi)
|
|
#define stat_inc_largest_node_hit(sbi)
|
|
#define stat_inc_cached_node_hit(sbi)
|
|
#define stat_inc_cached_node_hit(sbi)
|
|
#define stat_inc_inline_xattr(inode)
|
|
#define stat_inc_inline_xattr(inode)
|