Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp245953ybj; Mon, 4 May 2020 20:28:45 -0700 (PDT) X-Google-Smtp-Source: APiQypIE/T1qfUETakx7SwgRV+eVvhtbLo6o0UhssszKGdHxzFYiGviuMwixZFJ+auX4XecwMXA4 X-Received: by 2002:a50:d7c7:: with SMTP id m7mr910852edj.101.1588649325436; Mon, 04 May 2020 20:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588649325; cv=none; d=google.com; s=arc-20160816; b=bC0KIN6NeVxUJnGfhL3DluP/0VB1ZUTAnjTg5elsU0Gglfdf2koLZbXVF00hT8zEZn 74fC270bT89HbQjutXH/v/a1lQYnkuomZ61cswgjkQw+nQhjUOnPhD2p+YjZWUrmqN7i skdJ37VpiVpILU32V7RsRiLn9WobPbcTa/WNwPUEL7C9ebYzTpCMNbmWoflaJ9kVWC+J OHzS09CTii2DbpOYo5yQtE8d0/bNw0hRbgVWz1tk72YcR1tLjLEleP5lXpzCnfJ53IYf lGdsod6szvZZjIs1Pk3ksPNkbOH02eXmqXNX7v7Hz6pD8CvMarW2h16f5MGnsesAk6Ga W1pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GXCBQfFN33uQ9CRfSYSznh2cNmqeUwFTGB2BpvZM62U=; b=h/MJmxjuPl6e07goun9LR7SKZwlZptmlwZU6kASUdVJHaaLmoGTWLsO0VrwkXrsr3V vhjq0l2cRjadHFGtH3FAaDf8GgXFtFMeUXUPKAKKCzgIaEH4UvklHmMu+Rvh8DvYI3AB tQfYb3kQJUwZw2RBcX+qy5xQANPseQ3Php5WzyZ+3xaYDG9pl9LhnJy07UBNv03502V6 GoTqS8fZEJeutljl/k866YOsMesj1ADfDSMPERt08LCzlabDs/d0raHbPXLBgrsDS1KL 7/+cAlDRtEx95OFA0fjPuU7BEvkkivpFJKfYpmCzTbZwfd6Dd2MHCWj4OJnRJ7VhAdU2 grzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JTgWWppO; 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 l25si560834edw.288.2020.05.04.20.28.09; Mon, 04 May 2020 20:28:45 -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=JTgWWppO; 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 S1728137AbgEEDX7 (ORCPT + 99 others); Mon, 4 May 2020 23:23:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:51592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgEEDX7 (ORCPT ); Mon, 4 May 2020 23:23:59 -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 C3B2820663; Tue, 5 May 2020 03:23:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588649038; bh=fGAHGaEt2j3gLtKzmqvCyvgyxN3s0CESFCq+IQi+R54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JTgWWppOLTMzQME6ZKTNNccGCOrFdc11JW6VwM5LEfQfqml0Rth1qPIbdQ5MR5bSo EIzDc2+5BBb9Z/jR1WUTsVshIm1s0J6h9qO+hejNhHBGc5CfnFfNUl/H0HYW6AruCu ZjROhd+Md9S7OMFSAY+KVrfTENh0/1x/CxGY2SD8= Date: Mon, 4 May 2020 20:23:58 -0700 From: Jaegeuk Kim To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Subject: Re: [f2fs-dev] [PATCH] f2fs: remove redundant check in f2fs_force_buffered_io Message-ID: <20200505032358.GA136485@google.com> References: <20200504143538.159967-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/05, Chao Yu wrote: > 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 Heh, as I couldn't find yours, I was actually waiting for you to point out. :) > > Just want to know what's the change of backport concern now. Old ICE support had to decouple f2fs_post_read_required() and f2fs_forced_buffered_io(). Now, I decide to manage this as we need to manage this for one kernel version only. Thanks, > > 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. > >