Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp167986ybb; Tue, 24 Mar 2020 19:17:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuA/6SBLPwK0MjkmiX4fnTdhLfaPKHMo5KjA1eqR/RYHnvbeIZcuDk4KtdEryqD0tywZ846 X-Received: by 2002:a05:6830:1d91:: with SMTP id y17mr279029oti.184.1585102676503; Tue, 24 Mar 2020 19:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585102676; cv=none; d=google.com; s=arc-20160816; b=zBZjtmh9cn/l9b+gB+QFzCtSI39voXWippUuUQNQxu4M5G0l2hsYF4N+Vg4gb+2Vbp 61enboHvYtMQOagMXHXPIM2hgZUuTLKzLGkNVM4A/WP7NlfcvXo0D5yXus0KdcYi19dV IzT9F+WxdPXEgN74yZwOq06r0hbv3n5YIHjkhHoqI3g590d/KVA88/UW3WGlcNYbjplo rMjlJ+Q96rYMZ5LwFsX/Z8Qcy6rYNT85LYSfNtUNH1J6uwMYjEHwoa6PZDAmVnWAA0Q8 mJCYH55XGhXr62OJGJWYzQRPR83nrrA0a9Kjd5F1fkRsRzwkx6VeijcQ43a2zb7Trd7x M0KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pjl3T134tzO++iYjvJwSAr8SJfC1A0FDUVKNhAbPMfE=; b=nA1/VZwevyNkrbZFvnNsTw4M6Tr8pSKuYz8d04VEE6T7Bo0v3KKIrpKRDM1V+Z/d1Z Qpf5iNm+YtMJxrcHFttYVV/1Ldh0/gen+DxG6bysGnrX89y9WkeF60K/r/HVauSp1KKn bsOLgVTIs5oWyGQpytS5M3ediLDIdp6wrMkJR7nAxQ2kMQhfpufjhcceUctl3f30QVT/ dEeLzYzKrZaAQN9G0q1+LiVKvCG05Mt+lwZxl30w1TmS9DyfxeybLep2XVlmqt7qmqVC 7TIYZI2OzPCsGl/7tdomvrss2xMhd50M7WVKuozsBuP1Qz6NubOGcYMvmfsKM9N6sKtG n9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O9hk2njN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si10063657otj.205.2020.03.24.19.17.43; Tue, 24 Mar 2020 19:17:56 -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; dkim=pass header.i=@kernel.org header.s=default header.b=O9hk2njN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727281AbgCYCRD (ORCPT + 99 others); Tue, 24 Mar 2020 22:17:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:33414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727249AbgCYCRD (ORCPT ); Tue, 24 Mar 2020 22:17:03 -0400 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7359720722; Wed, 25 Mar 2020 02:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585102622; bh=XlRkxTBt/TBT87nkAoXqhlaE/B9x/buZGWZ1KNMNLRU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O9hk2njNRPuQj1azXPNGorbu7E4XupFHowJFqGbXkjF2utBsOoDDnzdvRCtT7BXHm FaOqc1/TZxq4Ly+kLBbiaR4IPim/Cfc4CzQUL+UmFT4C2Wi0r3FIlGIE6fs5eBheXK JyZCgv/goWUMrEjc+UH2q7aebvXWy+5+ClVVEyws= Date: Tue, 24 Mar 2020 19:17:02 -0700 From: Jaegeuk Kim To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, chao@kernel.org Subject: Re: [PATCH] f2fs: remove redundant compress inode check Message-ID: <20200325021702.GC198420@google.com> References: <20200229104906.12061-1-yuchao0@huawei.com> <6aab59b9-6e33-5b01-acf8-ccbacd9318e3@huawei.com> <20200324154322.GB198420@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > 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. > >>> > > . > >