aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2014-03-19 00:45:52 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-03-20 09:10:09 -0400
commita5f420101db326e27ef5c2ab737c8c1b0e3559e3 (patch)
tree25614bc20d540070ac2e57e270d2156885b1f77a /fs/f2fs/node.c
parentcdfc41c134d48c1923066bcfa6630b94588ad6bc (diff)
f2fs: remove unnecessary threshold
The NM_WOUT_THRESHOLD is now obsolete since f2fs starts to control on a basis of the memory footprint. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index fec4967fb8d2..daf644c57eae 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -224,7 +224,7 @@ int try_to_free_nats(struct f2fs_sb_info *sbi, int nr_shrink)
224{ 224{
225 struct f2fs_nm_info *nm_i = NM_I(sbi); 225 struct f2fs_nm_info *nm_i = NM_I(sbi);
226 226
227 if (available_free_memory(nm_i, NAT_ENTRIES) || nr_shrink <= 0) 227 if (available_free_memory(nm_i, NAT_ENTRIES))
228 return 0; 228 return 0;
229 229
230 write_lock(&nm_i->nat_tree_lock); 230 write_lock(&nm_i->nat_tree_lock);
@@ -1830,9 +1830,6 @@ flush_now:
1830 if (!flushed) 1830 if (!flushed)
1831 mutex_unlock(&curseg->curseg_mutex); 1831 mutex_unlock(&curseg->curseg_mutex);
1832 f2fs_put_page(page, 1); 1832 f2fs_put_page(page, 1);
1833
1834 /* 2) shrink nat caches if necessary */
1835 try_to_free_nats(sbi, nm_i->nat_cnt - NM_WOUT_THRESHOLD);
1836} 1833}
1837 1834
1838static int init_node_manager(struct f2fs_sb_info *sbi) 1835static int init_node_manager(struct f2fs_sb_info *sbi)