Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp170288ybb; Tue, 24 Mar 2020 19:21:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsJClAZQJGsjrYUMsu4vjR9C4ZfZJp+fw/uI9LsY5RorpmwVA4WRhNhQn3PCJuIW+CKOhcl X-Received: by 2002:a9d:77d0:: with SMTP id w16mr874397otl.66.1585102904394; Tue, 24 Mar 2020 19:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585102904; cv=none; d=google.com; s=arc-20160816; b=HRlcKJFcTPHt9wxxuysdSI4BF0Ie8g+r+K1FgCEEbwXBglj9/o2MDp1YxEQtwvPArG Uh81Hv9EJMa22vHN8y2Qb8lfZYvY6yLIaFRVVtQ1iGuaepHi9XrNNNaEsJRzN1Uv5vMx 7iJc1QlGvzIgGhN6ksNETnFhSh2r3OUMVRhgtMgdP0+Ftm9FyEdEkL4L8tjo/aMDlB+x Uk8SpQgTDCbjUH/3b/+L6LiD8Yg2zij9iiENVXbt27fIE/6C99GMsfG/eF0uU2pPRF5W dcq1QC0DHloLIDA3xe9aMJZT3Q4RejpP718qmSCoQqywFJHjdqHJOdaLr3uUR3VJ+bPW 2wIA== 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=i8Dr3V1nctjIB5utAvpc27SBDwv/Fs1QuGfXXUbxyMM=; b=IHDjA+5mbcNyukZaZNCD1KjwgBWKYSBI+bSv2jkdWjg0iu7k62WMg0jIgQ1SEQbgTE 9YQdUivKLQu7p0R2eCoTGMUFGQmmal2QjKsZjNMvpaAEDYsnHhBjmaFajXEnHWkxhMFF L2WPdiQn1qnOKhJaEftQTYG1N2frpGjblC7Zyxk96+n0cR8/DjINhWE5pZUKdED6kD01 agdcKJUqyhIONmFRAoNruzdmXKMsw2ZuCkCGCrxKWO1LtsLOxxejQVbht47jMwgB2GNb KI7YtxkphuYvZQVgQqirxpWadNqHUigGIycyCAeo+1aUS78pK0blLkfQ8LV5BMGooKFq 6FfQ== 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 o124si9873085oib.111.2020.03.24.19.21.32; Tue, 24 Mar 2020 19:21:44 -0700 (PDT) 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 S1727297AbgCYCVC (ORCPT + 99 others); Tue, 24 Mar 2020 22:21:02 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48586 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727249AbgCYCVB (ORCPT ); Tue, 24 Mar 2020 22:21:01 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 79E47D1081DD791063F5; Wed, 25 Mar 2020 10:20:57 +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.487.0; Wed, 25 Mar 2020 10:20:52 +0800 Subject: Re: [PATCH] f2fs: remove redundant compress inode check To: Jaegeuk Kim CC: , , References: <20200229104906.12061-1-yuchao0@huawei.com> <6aab59b9-6e33-5b01-acf8-ccbacd9318e3@huawei.com> <20200324154322.GB198420@google.com> <20200325021702.GC198420@google.com> From: Chao Yu Message-ID: Date: Wed, 25 Mar 2020 10:20: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: <20200325021702.GC198420@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/3/25 10:17, Jaegeuk Kim wrote: > On 03/25, Chao Yu wrote: >> On 2020/3/24 23:43, Jaegeuk Kim wrote: >>> On 03/24, Chao Yu wrote: >>>> Jaegeuk, >>>> >>>> Missed to apply this patch? >>>> >>>> On 2020/2/29 18:49, Chao Yu wrote: >>>>> due to f2fs_post_read_required() has did that. >>>>> >>>>> Signed-off-by: Chao Yu >>>>> --- >>>>> fs/f2fs/f2fs.h | 2 -- >>>>> 1 file changed, 2 deletions(-) >>>>> >>>>> diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h >>>>> index f4bcbbd5e9ed..882f9ad3445b 100644 >>>>> --- a/fs/f2fs/f2fs.h >>>>> +++ b/fs/f2fs/f2fs.h >>>>> @@ -4006,8 +4006,6 @@ static inline bool f2fs_force_buffered_io(struct inode *inode, >>>>> return true; >>>>> if (f2fs_is_multi_device(sbi)) >>>>> return true; >>>>> - if (f2fs_compressed_file(inode)) >>>>> - return true; >>> >>> I thought that we can keep this to avoid any confusion when porting to old >>> production kernel which uses ICE. >> >> That old kernel w/ ICE doesn't have f2fs_post_read_required(), right? > > We do have. Well, so I didn't catch your point why we will confuse. :P > >> >> I thought we backport features with order of the time fsverity/compression >> feature was introduced, then f2fs_post_read_required() should be there >> when we backport compression feature. >> >> Thanks, >> >>> >>>>> /* >>>>> * for blkzoned device, fallback direct IO to buffered IO, so >>>>> * all IOs can be serialized by log-structured write. >>>>> >>> . >>> > . >