f2fs: flush dirty directory pages when scattered pages are gathered

If a lot of directory inodes have the small number of dentry pages in
each
page cache, there is no chance to flush them periodically.
This patch proposes the average number of dirty dentry pages for the
threshold.