|
|
@@ -1198,12 +1198,6 @@ redirty_out:
|
|
|
return AOP_WRITEPAGE_ACTIVATE;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * It is very important to gather dirty pages and write at once, so that we can
|
|
|
- * submit a big bio without interfering other data writes.
|
|
|
- * Be default, 512 pages (2MB) * 3 node types, is more reasonable.
|
|
|
- */
|
|
|
-#define COLLECT_DIRTY_NODES 1536
|
|
|
static int f2fs_write_node_pages(struct address_space *mapping,
|
|
|
struct writeback_control *wbc)
|
|
|
{
|
|
|
@@ -1214,7 +1208,7 @@ static int f2fs_write_node_pages(struct address_space *mapping,
|
|
|
f2fs_balance_fs_bg(sbi);
|
|
|
|
|
|
/* collect a number of dirty node pages and write together */
|
|
|
- if (get_pages(sbi, F2FS_DIRTY_NODES) < COLLECT_DIRTY_NODES)
|
|
|
+ if (get_pages(sbi, F2FS_DIRTY_NODES) < nr_pages_to_skip(sbi, NODE))
|
|
|
return 0;
|
|
|
|
|
|
/* if mounting is failed, skip writing node pages */
|