Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp139094ybb; Tue, 24 Mar 2020 18:28:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtKXhOkPkBjUpRt6Q2Ua9HWGM6vZsWWk65B/GIQRgTtVqflNS2cfq8rpqfwbDO1sR2e3V3l X-Received: by 2002:a9d:6945:: with SMTP id p5mr753236oto.268.1585099708570; Tue, 24 Mar 2020 18:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585099708; cv=none; d=google.com; s=arc-20160816; b=s7PNepNN8+PckxgemKIdnic49s8w1lwjnvGo1eQKsl3urtv/u6+0vRRQQkU2FXJCnL W0U+/ER0Gn/S7cT9tYCyotKDNjVC12OA+ODS5gD3PK+kAQaYQASU9kPDnLQAnSQkYPbC RYFg/vexIrSPEdqK5t3rr2Dolr/Pn29m4VF6McZMZdfuFNefIR0fC2WAWeMe1fSo6+ht Awmy0EG4ZqiANAXwAn9PBt4vRtwNeqNhyxtu02n3dL0c3ZWLgXPN2LL6uLJ9uLu1pbdO nSeKcOhBT8sIPT5M4fwX163CmU+QD1xTqyCK8BcAuz5up0UZLckYH92vjPKgWcuuDmGh 7OXw== 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=VwjACd/zWHhfXmj+Gzi6AqexkCAlEOFTseB+C+4xeQ8=; b=Vx1UBM1qZeTGIPcV+2XuOA0W9J98w+koK2UuPBSAUpEqJK3i4OVUN9fZxUalu72Y/k nDOnzH5YYOC4aJMwzN3qCtLBKuY/OqCBjB5ketOWbxzU0QPlNgFQvbjub/iGBlY6KK3e haMr3BECAvvRTai1qU7V5JDOG5ddbIOgoLaxCfN4Ikt8RwWgykgY317WcFIP+PyttO+Z HLVJxHbfuVFQTMWjDqVEmCjYbn69J+hwz5TlGFJb3ifs3IXcoq7PrJgcolkSwxCGFg+t 2jifzKVTZnaIMR8fmBQfUGbt/iHAMYcDdVl/pqx8ORE54mQWaWlWx9SCR/5AhoCCrnJo cJDA== 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 z12si63075otm.3.2020.03.24.18.28.12; Tue, 24 Mar 2020 18:28:28 -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 S1727253AbgCYB0M (ORCPT + 99 others); Tue, 24 Mar 2020 21:26:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57524 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727196AbgCYB0M (ORCPT ); Tue, 24 Mar 2020 21:26:12 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 29D1D445602345D482B4; Wed, 25 Mar 2020 09:26:08 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.208) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 25 Mar 2020 09:26:06 +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> From: Chao Yu Message-ID: Date: Wed, 25 Mar 2020 09:26:05 +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: <20200324154322.GB198420@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/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? 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. >>> > . >