Lines Matching defs:f2fs_sb_info
1090 struct f2fs_sb_info { struct
1091 struct super_block *sb; /* pointer to VFS super block */
1092 struct proc_dir_entry *s_proc; /* proc entry */
1093 struct f2fs_super_block *raw_super; /* raw super block pointer */
1094 struct rw_semaphore sb_lock; /* lock for raw super block */
1095 int valid_super_block; /* valid super block no */
1096 unsigned long s_flag; /* flags for sbi */
1099 unsigned int blocks_per_blkz; /* F2FS blocks per zone */
1100 unsigned int log_blocks_per_blkz; /* log2 F2FS blocks per zone */
1104 struct f2fs_nm_info *nm_info; /* node manager */
1105 struct inode *node_inode; /* cache node blocks */
1108 struct f2fs_sm_info *sm_info; /* segment manager */
1111 struct f2fs_bio_info *write_io[NR_PAGE_TYPE]; /* for write bios */
1112 struct mutex wio_mutex[NR_PAGE_TYPE - 1][NR_TEMP_TYPE];
1114 mempool_t *write_io_dummy; /* Dummy pages */
1117 struct f2fs_checkpoint *ckpt; /* raw checkpoint pointer */
1118 int cur_cp_pack; /* remain current cp pack */
1119 spinlock_t cp_lock; /* for flag in ckpt */
1120 struct inode *meta_inode; /* cache meta blocks */
1121 struct mutex cp_mutex; /* checkpoint procedure lock */
1122 struct rw_semaphore cp_rwsem; /* blocking FS operations */
1123 struct rw_semaphore node_write; /* locking node writes */
1124 struct rw_semaphore node_change; /* locking node change */
1125 wait_queue_head_t cp_wait;
1126 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */
1127 long interval_time[MAX_TIME]; /* to store thresholds */
1129 struct inode_management im[MAX_INO_ENTRY]; /* manage inode cache */
1132 unsigned int max_orphans; /* max orphan inodes */
1135 struct list_head inode_list[NR_INODE_TYPE]; /* dirty inode list */
1136 spinlock_t inode_lock[NR_INODE_TYPE]; /* for dirty inode list lock */
1139 struct radix_tree_root extent_tree_root;/* cache extent cache entries */
1140 struct mutex extent_tree_lock; /* locking extent radix tree */
1141 struct list_head extent_list; /* lru list for shrinker */
1142 spinlock_t extent_lock; /* locking extent lru list */
1143 atomic_t total_ext_tree; /* extent tree count */
1144 struct list_head zombie_list; /* extent zombie tree list */
1145 atomic_t total_zombie_tree; /* extent zombie tree count */
1146 atomic_t total_ext_node; /* extent info count */
1149 unsigned int log_sectors_per_block; /* log2 sectors per block */
1150 unsigned int log_blocksize; /* log2 block size */
1151 unsigned int blocksize; /* block size */
1152 unsigned int root_ino_num; /* root inode number*/
1153 unsigned int node_ino_num; /* node inode number*/
1154 unsigned int meta_ino_num; /* meta inode number*/
1155 unsigned int log_blocks_per_seg; /* log2 blocks per segment */
1156 unsigned int blocks_per_seg; /* blocks per segment */
1157 unsigned int segs_per_sec; /* segments per section */
1158 unsigned int secs_per_zone; /* sections per zone */
1159 unsigned int total_sections; /* total section count */
1160 unsigned int total_node_count; /* total node block count */
1161 unsigned int total_valid_node_count; /* valid node block count */
1162 loff_t max_file_blocks; /* max block index of file */
1163 int dir_level; /* directory level */
1164 unsigned int trigger_ssr_threshold; /* threshold to trigger ssr */
1165 int readdir_ra; /* readahead inode in readdir */
1167 block_t user_block_count; /* # of user blocks */
1168 block_t total_valid_block_count; /* # of valid blocks */
1169 block_t discard_blks; /* discard command candidats */
1170 block_t last_valid_block_count; /* for recovery */
1171 block_t reserved_blocks; /* configurable reserved blocks */
1172 block_t current_reserved_blocks; /* current reserved blocks */
1174 unsigned int nquota_files; /* # of quota sysfile */
1176 u32 s_next_generation; /* for NFS support */
1179 atomic_t nr_pages[NR_COUNT_TYPE];
1181 struct percpu_counter alloc_valid_block_count;
1184 atomic_t wb_sync_req; /* count # of WB_SYNC threads */
1187 struct percpu_counter total_valid_inode_count;
1189 struct f2fs_mount_info mount_opt; /* mount options */
1192 struct mutex gc_mutex; /* mutex for GC */
1193 struct f2fs_gc_kthread *gc_thread; /* GC thread */
1194 unsigned int cur_victim_sec; /* current victim section num */
1197 u64 fggc_threshold;
1200 u64 gc_pin_file_threshold;
1203 unsigned int max_victim_search;
1210 struct f2fs_stat_info *stat_info; /* FS status information */
1211 unsigned int segment_count[2]; /* # of allocated segments */
1212 unsigned int block_count[2]; /* # of allocated blocks */
1213 atomic_t inplace_count; /* # of inplace update */
1214 atomic64_t total_hit_ext; /* # of lookup extent cache */
1215 atomic64_t read_hit_rbtree; /* # of hit rbtree extent node */
1216 atomic64_t read_hit_largest; /* # of hit largest extent node */
1217 atomic64_t read_hit_cached; /* # of hit cached extent node */
1218 atomic_t inline_xattr; /* # of inline_xattr inodes */
1219 atomic_t inline_inode; /* # of inline_data inodes */
1220 atomic_t inline_dir; /* # of inline_dentry inodes */
1221 atomic_t aw_cnt; /* # of atomic writes */
1222 atomic_t vw_cnt; /* # of volatile writes */
1223 atomic_t max_aw_cnt; /* max # of atomic writes */
1224 atomic_t max_vw_cnt; /* max # of volatile writes */
1225 int bg_gc; /* background gc calls */
1226 unsigned int ndirty_inode[NR_INODE_TYPE]; /* # of dirty inodes */
1228 spinlock_t stat_lock; /* lock for stat operations */
1231 spinlock_t iostat_lock;
1232 unsigned long long write_iostat[NR_IO_TYPE];
1233 bool iostat_enable;
1236 struct kobject s_kobj;
1237 struct completion s_kobj_unregister;
1240 struct list_head s_list;
1264 static inline bool time_to_inject(struct f2fs_sb_info *sbi, int type) in time_to_inject() argument