From: Jaegeuk Kim Date: Wed, 19 Dec 2012 07:25:21 +0000 (+0900) Subject: f2fs: do f2fs_balance_fs in front of dir operations X-Git-Tag: v3.8-rc3~26^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1efef832020ef392deb2cd3d74e0c316711245be;p=pandora-kernel.git f2fs: do f2fs_balance_fs in front of dir operations In order to conserve free sections to deal with the worst-case scenarios, f2fs should be able to freeze all the directory operations especially when there are not enough free sections. The f2fs_balance_fs() is for this use. When FS utilization becomes almost 100%, directory operations can be failed due to -ENOSPC frequently, which produces some dirty node pages occasionally. Previously, in such a case, f2fs_balance_fs() is not able to be triggered since it is triggered only if the directory operation ends up with success. So, this patch triggers f2fs_balance_fs() at first before handling directory operations. Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed