From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750903AbdK3HGx (ORCPT ); Thu, 30 Nov 2017 02:06:53 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11449 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbdK3HGw (ORCPT ); Thu, 30 Nov 2017 02:06:52 -0500 Subject: Re: [PATCH 1/2] f2fs: pass down write hints to block layer for bufferd write To: Hyunchul Lee , Jaegeuk Kim CC: , , , , Jens Axboe , Hyunchul Lee References: <1511828607-624-1-git-send-email-hyc.lee@gmail.com> From: Chao Yu Message-ID: Date: Thu, 30 Nov 2017 15:06:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1511828607-624-1-git-send-email-hyc.lee@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.5A1FADF8.007C,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 73646f26dbc73de282b6a40e425c2d48 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hyunchul, On 2017/11/28 8:23, Hyunchul Lee wrote: > From: Hyunchul Lee > > This implements which hint is passed down to block layer > for datas from the specific segment type. > > segment type hints > ------------ ----- > COLD_NODE & COLD_DATA WRITE_LIFE_EXTREME > WARM_DATA WRITE_LIFE_NONE > HOT_NODE & WARM_NODE WRITE_LIFE_LONG > HOT_DATA WRITE_LIFE_MEDIUM > META_DATA WRITE_LIFE_SHORT Just noticed, if our user do not give the hint via ioctl, f2fs can provider hint to lower layer according to hot/cold separation ability, it will be okay. But once user give his hint which may be more accurate than filesystem, hint converted by f2fs may be wrong. So what do you think of adding an option to control whether filesystem can convert hint user given? Thanks,