diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-05-23 09:57:53 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-28 02:03:05 -0400 |
commit | 35b09d82c3cf3fc0b8b6d923e7fd82ff7926aafc (patch) | |
tree | e92d7f02e6bbd19c194cd6363f1c5b0545e20523 /fs/f2fs/f2fs.h | |
parent | a9841c4dbbdd8a2fb919ea305ffa95ab5ec80af2 (diff) |
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 92fd4e9285c0..40b137acb8a2 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -372,7 +372,6 @@ struct f2fs_sb_info { | |||
372 | /* for directory inode management */ | 372 | /* for directory inode management */ |
373 | struct list_head dir_inode_list; /* dir inode list */ | 373 | struct list_head dir_inode_list; /* dir inode list */ |
374 | spinlock_t dir_inode_lock; /* for dir inode list lock */ | 374 | spinlock_t dir_inode_lock; /* for dir inode list lock */ |
375 | unsigned int n_dirty_dirs; /* # of dir inodes */ | ||
376 | 375 | ||
377 | /* basic file system units */ | 376 | /* basic file system units */ |
378 | unsigned int log_sectors_per_block; /* log2 sectors per block */ | 377 | unsigned int log_sectors_per_block; /* log2 sectors per block */ |
@@ -409,12 +408,15 @@ struct f2fs_sb_info { | |||
409 | * for stat information. | 408 | * for stat information. |
410 | * one is for the LFS mode, and the other is for the SSR mode. | 409 | * one is for the LFS mode, and the other is for the SSR mode. |
411 | */ | 410 | */ |
411 | #ifdef CONFIG_F2FS_STAT_FS | ||
412 | struct f2fs_stat_info *stat_info; /* FS status information */ | 412 | struct f2fs_stat_info *stat_info; /* FS status information */ |
413 | unsigned int segment_count[2]; /* # of allocated segments */ | 413 | unsigned int segment_count[2]; /* # of allocated segments */ |
414 | unsigned int block_count[2]; /* # of allocated blocks */ | 414 | unsigned int block_count[2]; /* # of allocated blocks */ |
415 | unsigned int last_victim[2]; /* last victim segment # */ | ||
416 | int total_hit_ext, read_hit_ext; /* extent cache hit ratio */ | 415 | int total_hit_ext, read_hit_ext; /* extent cache hit ratio */ |
417 | int bg_gc; /* background gc calls */ | 416 | int bg_gc; /* background gc calls */ |
417 | unsigned int n_dirty_dirs; /* # of dir inodes */ | ||
418 | #endif | ||
419 | unsigned int last_victim[2]; /* last victim segment # */ | ||
418 | spinlock_t stat_lock; /* lock for stat operations */ | 420 | spinlock_t stat_lock; /* lock for stat operations */ |
419 | }; | 421 | }; |
420 | 422 | ||