f2fs: add f2fs_balance_fs for direct IO
authorHuang Ying <ying.huang@intel.com>
Sat, 12 Jul 2014 12:10:00 +0000 (20:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 25 Jul 2014 15:13:58 +0000 (08:13 -0700)
commit79e35dc3c23dd2ac9f8681361026c82b71a0b006
treeb39f183f6e6ef4c4863db07aa76b989812786467
parentf1121ab0ba9ab9c1592049533b511877600f409e
f2fs: add f2fs_balance_fs for direct IO

Otherwise, if a large amount of direct IO writes were done, the
segment allocation may be failed because no enough segments are gced.

Changes:

v2: add f2fs_balance_fs into __get_data_block instead of f2fs_direct_IO.

Signed-off-by: Huang, Ying <ying.huang@intel.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c