Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp189567ybj; Mon, 4 May 2020 19:01:51 -0700 (PDT) X-Google-Smtp-Source: APiQypL7joTkVJ4vttPWu70f/Zd1PXYci37Xasyr8Ib4ZxERFH4uGLnouAvYrJSZ1uaXDrsbb7U2 X-Received: by 2002:a05:6402:1d38:: with SMTP id dh24mr756863edb.9.1588644111596; Mon, 04 May 2020 19:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588644111; cv=none; d=google.com; s=arc-20160816; b=g6+kraUD1Lg8tJ8tpgbwTEv+Wx/ZDa/NYi9tGiDmtz0vjruSUFRN+l2ZxcoZwIYyK6 zCAZe+mfd3gA2tD07eXG/zgaiCvZ59l/xBwcicFOA7/DGewmjh4EpgoGyEGu56PWIQ0f oaYr08fFIlxmraLjVh3YcAyi9A6Iu8MVO94NRI7HeIxVAset+Z3SdCtF+uCUa1zWb4d7 Ozp61ib/mOY4FfVBRLmEumNL5KqJn//F5kFBBT8yZ7yNQ2YGrQMe+Nao5SzzbS/QAoC1 1Bzpwc9eLqM6zT6bXnzPRPpWgcxnJrmB7L0yI/62eIh9He6I9uBbw+kVPXbAqsZO/oIu EcgA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=P4eZuSKS/gpOfwRyyhs6YTZJsi6xKqfDJB9cew3v04M=; b=IFZSHS3PmgSOUijBJZhbI2oOTVaohPmd51H7K5PzwlM2i2jYMEtK3mIhwpYI6BJZ95 Vwnt1Z91fgarSiGroo51UCI7VJLF+vIFllnwjMtdaLDo9KD5MF5DTQafjT60ErvpP4+B jo1QHqUaxNcXPt25/3w89bX9V567c40DgPd7F8vaEmKP29FaU5wy9E7WrTp8VD2c/wsY +HHx+wEOjHeMODvoukCSONOR9L9u79zttHRGXgvUsLnOoZJpsSyTCkEEtSL1Tm+COmAz GjScZlSgWWTQjYfRRr9CMVde46TsJpC9ZJuqS5EGea4mSSAkY4K7dof60ui/ea7gS4iC JsIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dG8o5twj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id me7si229500ejb.191.2020.05.04.19.01.27; Mon, 04 May 2020 19:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dG8o5twj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726635AbgEEB6z (ORCPT + 99 others); Mon, 4 May 2020 21:58:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:58092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgEEB6z (ORCPT ); Mon, 4 May 2020 21:58:55 -0400 Received: from [192.168.0.107] (unknown [58.213.210.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D3B6206C0; Tue, 5 May 2020 01:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588643935; bh=cQnMVodPsVGu6kr4A3A0f+mhcJdPPyK20x6xr8YdlKA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=dG8o5twjxu0FpycuHeWowUTohcKzI5WM+H72CCEoKadH1XQZfel6wVQxdhy6X2R8Y ekyXRTXOflT3PsZD8JZFhkPQ2ngLg2/36/IRzhi0oS1QS5qfDOF0Z7wjb6ILZfXBRF TMbyxz0Xq51NDuPqVisI7RSOD+oRf4tBz2Fv7dDs= Subject: Re: [f2fs-dev] [PATCH] f2fs: remove redundant check in f2fs_force_buffered_io To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com References: <20200504143538.159967-1-jaegeuk@kernel.org> From: Chao Yu Message-ID: Date: Tue, 5 May 2020 09:58:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200504143538.159967-1-jaegeuk@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-5-4 22:35, Jaegeuk Kim wrote: > From: Daeho Jeong > > We already checked whether the file is compressed or not in > f2fs_post_read_required(). So removed f2fs_compressed_file() > in f2fs_force_buffered_io(). Agreed, since I have sent similar patch before: https://lkml.org/lkml/2020/3/24/1819 Just want to know what's the change of backport concern now. Thanks, > > Signed-off-by: Daeho Jeong > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h > index 6b7b963641696..01a00fc808361 100644 > --- a/fs/f2fs/f2fs.h > +++ b/fs/f2fs/f2fs.h > @@ -4064,8 +4064,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; > /* > * for blkzoned device, fallback direct IO to buffered IO, so > * all IOs can be serialized by log-structured write. >