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>
Wed, 3 Jan 2018 03:27:29 +0000 (19:27 -0800)
commitd5097be55c21c103d2227591708425aab2e9682d
tree04633656e6a00f6728ac9ff85423a83a443b55f9
parent20bb2479be49296ca324d7d9dfafad4816e7958c
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