summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.h
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2016-01-18 11:32:58 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-23 01:07:23 +0100
commit2304cb0c4438829c88bed69f57374b80ae31f0ba (patch)
tree6558a73688e39def7c8049a5aa4eb5de8560afd5 /fs/f2fs/node.h
parentf2fs: flush dirty nat entries when exceeding threshold (diff)
downloadlinux-2304cb0c4438829c88bed69f57374b80ae31f0ba.tar.xz
linux-2304cb0c4438829c88bed69f57374b80ae31f0ba.zip
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/node.h')
-rw-r--r--fs/f2fs/node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h
index bd119c0edf93..56c451921522 100644
--- a/fs/f2fs/node.h
+++ b/fs/f2fs/node.h
@@ -123,7 +123,7 @@ static inline void raw_nat_from_node_info(struct f2fs_nat_entry *raw_ne,
static inline bool excess_dirty_nats(struct f2fs_sb_info *sbi)
{
return NM_I(sbi)->dirty_nat_cnt >= NM_I(sbi)->max_nid *
- DEF_DIRTY_NAT_RATIO_THRESHOLD / 100;
+ NM_I(sbi)->dirty_nats_ratio / 100;
}
enum mem_type {