|
@@ -339,7 +339,7 @@ int f2fs_write_inode(struct inode *inode, struct writeback_control *wbc)
|
|
|
* We need to balance fs here to prevent from producing dirty node pages
|
|
* We need to balance fs here to prevent from producing dirty node pages
|
|
|
* during the urgent cleaning time when runing out of free sections.
|
|
* during the urgent cleaning time when runing out of free sections.
|
|
|
*/
|
|
*/
|
|
|
- if (update_inode_page(inode))
|
|
|
|
|
|
|
+ if (update_inode_page(inode) && wbc && wbc->nr_to_write)
|
|
|
f2fs_balance_fs(sbi, true);
|
|
f2fs_balance_fs(sbi, true);
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|