diff options
author | Chao Yu <chao2.yu@samsung.com> | 2016-01-18 05:32:58 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-22 19:07:23 -0500 |
commit | 2304cb0c4438829c88bed69f57374b80ae31f0ba (patch) | |
tree | 6558a73688e39def7c8049a5aa4eb5de8560afd5 /fs/f2fs/f2fs.h | |
parent | 7d768d2c264eec44941a13cb92200565e8c754d0 (diff) |
f2fs: export dirty_nats_ratio in sysfs
This patch exports a new sysfs entry 'dirty_nat_ratio' to control threshold
of dirty nat entries, if current ratio exceeds configured threshold,
checkpoint will be triggered in f2fs_balance_fs_bg for flushing dirty nats.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e41ffc1f54d1..6c08cb1fd340 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -515,6 +515,7 @@ struct f2fs_nm_info { | |||
515 | nid_t next_scan_nid; /* the next nid to be scanned */ | 515 | nid_t next_scan_nid; /* the next nid to be scanned */ |
516 | unsigned int ram_thresh; /* control the memory footprint */ | 516 | unsigned int ram_thresh; /* control the memory footprint */ |
517 | unsigned int ra_nid_pages; /* # of nid pages to be readaheaded */ | 517 | unsigned int ra_nid_pages; /* # of nid pages to be readaheaded */ |
518 | unsigned int dirty_nats_ratio; /* control dirty nats ratio threshold */ | ||
518 | 519 | ||
519 | /* NAT cache management */ | 520 | /* NAT cache management */ |
520 | struct radix_tree_root nat_root;/* root of the nat entry cache */ | 521 | struct radix_tree_root nat_root;/* root of the nat entry cache */ |