diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-04-15 21:47:06 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-06 21:21:55 -0400 |
commit | 6fb03f3a40805a412c9b285010ffdc2e7563f81b (patch) | |
tree | 05698049e0f21bc265952aaa75a708ea006ca56a /fs/f2fs/node.h | |
parent | e8271fa3908de52937d298b339f9f7984c491cc6 (diff) |
f2fs: adjust free mem size to flush dentry blocks
If so many dirty dentry blocks are cached, not reached to the flush condition,
we should fall into livelock in balance_dirty_pages.
So, let's consider the mem size for the condition.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r-- | fs/f2fs/node.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 41bb65b1c97d..a076c88bdca5 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h | |||
@@ -83,9 +83,10 @@ static inline void raw_nat_from_node_info(struct f2fs_nat_entry *raw_ne, | |||
83 | raw_ne->version = ni->version; | 83 | raw_ne->version = ni->version; |
84 | } | 84 | } |
85 | 85 | ||
86 | enum nid_type { | 86 | enum mem_type { |
87 | FREE_NIDS, /* indicates the free nid list */ | 87 | FREE_NIDS, /* indicates the free nid list */ |
88 | NAT_ENTRIES /* indicates the cached nat entry */ | 88 | NAT_ENTRIES, /* indicates the cached nat entry */ |
89 | DIRTY_DENTS /* indicates dirty dentry pages */ | ||
89 | }; | 90 | }; |
90 | 91 | ||
91 | /* | 92 | /* |