Re: [PATCH v2] f2fs: apply write hints to select the type of segment for direct write

2017-11-29 Thread Chao Yu
On 2017/11/28 8:23, Hyunchul Lee wrote: > From: Hyunchul Lee > > 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 Reviewed-by: Chao Yu Thanks,

[PATCH v2] f2fs: apply write hints to select the type of segment for direct write

2017-11-27 Thread Hyunchul Lee
From: Hyunchul Lee 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 --- v2: - Add a new member, m_seg_type to struct f2fs_map_blocks. - Assign the segment type to m_seg_