Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1724074ybl; Sat, 11 Jan 2020 01:28:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxA12uQI4OTD00+3U6o0w7yfYopOYkliFrAPi6NMTsn7iIapZu9g8tb1Stv6Lo8ewS0cnqH X-Received: by 2002:a9d:6b89:: with SMTP id b9mr3150646otq.298.1578734906351; Sat, 11 Jan 2020 01:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578734906; cv=none; d=google.com; s=arc-20160816; b=zLoq6lMOjfP2HrNdIxdlUpZDosZoUj0u5/gFMnE/JlEMc0uzcT6DjpBxQtkBSxfhQ2 siWnL//Tcr9lb02fi0TdsaeNSghWi8wKcHEqQZkGx/1stThfc63KDo90a2hsZgKPQzTI 0PDRM3mZwntkQ45PuSh+VsygjLZyen1ZNQRmsT7uhBHOTJANH3NuGssozJdFlJxeeKVC 2hbctsiCDDJWsSUWbd01B4cJOZTEjjklyp9+zlpXZ5uvSDYmxltIk3IAj/7WpavhLb9B YZoNyBtjp7gP7paqwt/Jj6Hh2jt3iTXoJzCBkcyU3XVaa/JZkIiZh+8wlKdUw81knTGm zxhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=aHnEY0WZSuOprgp6zYLLP2ROjnwPtaV4bV1qhCteZm4=; b=HoMOB6en67rpKIqp0iqkw3mcVDenKBWmwY+jBwMsniolNzMWzxVjFMZ8frEnfRshoq 6jpBEJmMfK8afeD3kOKMfIS5Yso042AjcdEmLtg/5bfdTlaDtZkPkzaMC7MpreWZUSZi GVTwVnFCjJbMWCTTG8h8MdinpxFgmjHrOzrqfT13hJZwY/299BRPMEANGU7I3p0zRcwI Kwh4SmJOGY9LNwiEOXBt1jKZgj7urEs9kkgC9xx8bM5FDqvVX91Gml/Feo7p2ckROT/O 9m+CmM3/5WbGoLcBjsgS7mO9bWLPPhSp0PfN2lQyfrHSw63XPJrWi+UmotnaL+i9+8o1 H2FQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p6si2750866oig.88.2020.01.11.01.28.14; Sat, 11 Jan 2020 01:28:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728699AbgAKJ04 (ORCPT + 99 others); Sat, 11 Jan 2020 04:26:56 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9154 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728630AbgAKJ0z (ORCPT ); Sat, 11 Jan 2020 04:26:55 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5A99D26524B0229798D5; Sat, 11 Jan 2020 17:26:54 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 11 Jan 2020 17:26:51 +0800 Subject: Re: [f2fs-dev] [PATCH] f2fs: add a way to turn off ipu bio cache To: Jaegeuk Kim CC: , References: <20200107020709.73568-1-jaegeuk@kernel.org> <20200108120444.GC28331@jaegeuk-macbookpro.roam.corp.google.com> <20200108231840.GB42219@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: Date: Sat, 11 Jan 2020 17:26:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200108231840.GB42219@jaegeuk-macbookpro.roam.corp.google.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/1/9 7:18, Jaegeuk Kim wrote: > On 01/08, Chao Yu wrote: >> On 2020/1/8 20:04, Jaegeuk Kim wrote: >>> On 01/08, Chao Yu wrote: >>>> On 2020/1/7 10:07, Jaegeuk Kim wrote: >>>>> Setting 0x40 in /sys/fs/f2fs/dev/ipu_policy gives a way to turn off >>>>> bio cache, which is useufl to check whether block layer using hardware >>>>> encryption engine merges IOs correctly. >>>>> >>>>> Signed-off-by: Jaegeuk Kim >>>>> --- >>>>> Documentation/filesystems/f2fs.txt | 1 + >>>>> fs/f2fs/segment.c | 2 +- >>>>> fs/f2fs/segment.h | 1 + >>>>> 3 files changed, 3 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt >>>>> index 41b5aa94b30f..cd93bcc34726 100644 >>>>> --- a/Documentation/filesystems/f2fs.txt >>>>> +++ b/Documentation/filesystems/f2fs.txt >>>>> @@ -335,6 +335,7 @@ Files in /sys/fs/f2fs/ >>>>> 0x01: F2FS_IPU_FORCE, 0x02: F2FS_IPU_SSR, >>>>> 0x04: F2FS_IPU_UTIL, 0x08: F2FS_IPU_SSR_UTIL, >>>>> 0x10: F2FS_IPU_FSYNC. >>>> >>>> . -> , >>> >>> Actually, we can't do it. I revised it a bit instead. >> >> One more question, why skipping 0x20 bit position? > > It seems original patch missed to add comment. > >>From f9447095de55a3cda1023a37a5e1cb6dd2f54ebb Mon Sep 17 00:00:00 2001 > From: Jaegeuk Kim > Date: Wed, 8 Jan 2020 15:10:02 -0800 > Subject: [PATCH] f2fs: update f2fs document regarding to fsync_mode > > This patch adds missing fsync_mode entry in f2fs document. > > Fixes: 04485987f053 ("f2fs: introduce async IPU policy") > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,