f2fs: push some variables to debug part
Some, counters are needed only for the statistical information while debugging. So, those can be controlled using CONFIG_F2FS_STAT_FS, pushing the usage for few variables under this flag. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
parent
a9841c4dbb
commit
35b09d82c3
5 changed files with 21 additions and 2 deletions
|
@ -372,7 +372,6 @@ struct f2fs_sb_info {
|
|||
/* for directory inode management */
|
||||
struct list_head dir_inode_list; /* dir inode list */
|
||||
spinlock_t dir_inode_lock; /* for dir inode list lock */
|
||||
unsigned int n_dirty_dirs; /* # of dir inodes */
|
||||
|
||||
/* basic file system units */
|
||||
unsigned int log_sectors_per_block; /* log2 sectors per block */
|
||||
|
@ -409,12 +408,15 @@ struct f2fs_sb_info {
|
|||
* for stat information.
|
||||
* one is for the LFS mode, and the other is for the SSR mode.
|
||||
*/
|
||||
#ifdef CONFIG_F2FS_STAT_FS
|
||||
struct f2fs_stat_info *stat_info; /* FS status information */
|
||||
unsigned int segment_count[2]; /* # of allocated segments */
|
||||
unsigned int block_count[2]; /* # of allocated blocks */
|
||||
unsigned int last_victim[2]; /* last victim segment # */
|
||||
int total_hit_ext, read_hit_ext; /* extent cache hit ratio */
|
||||
int bg_gc; /* background gc calls */
|
||||
unsigned int n_dirty_dirs; /* # of dir inodes */
|
||||
#endif
|
||||
unsigned int last_victim[2]; /* last victim segment # */
|
||||
spinlock_t stat_lock; /* lock for stat operations */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue