OSDN Git Service

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>
Thu, 8 Feb 2018 02:05:07 +0000 (18:05 -0800)
commit3bc01114a338a9ac336b3e139948e69ef0488a43
tree02fcd6bfe3d173060b13b46ddb5febc6f047f6b6
parentc80f01959114c0f49bac2a006a419b8d59104353
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
fs/f2fs/segment.c