f2fs: apply write hints to select the type of segment for direct write
authorHyunchul Lee <cheol.lee@lge.com>
Tue, 28 Nov 2017 00:23:00 +0000 (09:23 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:29:21 +0000 (13:29 -0800)
commit8e56c02ee9faaeb07cc41b9cfbb972fe452f4850
treed98fe9d99f705fc1d22a79f13b57df3f7607c1c3
parenta4015f91473ecfd958823de80de8174f367c2f4f
f2fs: apply write hints to select the type of segment for direct write

When blocks are allocated for direct write, select the type of
segment using the kiocb hint. But if an inode has FI_NO_ALLOC,
use the inode hint.

Signed-off-by: Hyunchul Lee <cheol.lee@lge.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c