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)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:06 +0000 (18:04 +0800)
commit8458121b82c0c8256b3297c7490c21d4c11f501f
tree1affe2a6ba6750f218ea595772a6b8d7d21605a9
parentfebc3473613f81df5dfc6a89f9b3cee7a0e62434
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