]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0a551206d3cdcf4c4836d88076884edc9f0dcea
tree04633656e6a00f6728ac9ff85423a83a443b55f9
parent895efc4fbc13bfe23ef13510b0aef806a60f1e16
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