Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3675547ybz; Mon, 4 May 2020 07:39:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLjYWZykVoatFJPWrylfmj0hZN98PQtQ/A6/DppeG6UN3pBSqRXVWqo+dmIs6IlAt0tW/9+ X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr14641289ejr.135.1588603148246; Mon, 04 May 2020 07:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588603148; cv=none; d=google.com; s=arc-20160816; b=LS6e69v5vLN/2u/c7LXKIVXCCN8bJxWrs7Ssqbx+M8CLRN2nOUUmSlARuIWeXXGt+e hCmy0jG7Dq3Jb+xf+v+AxzuiEbMgeHqeIjyWK8zOjkZlMikbGuFuN06PijSMzqU7R9AV KwmL/M8gK7fGTMtF6yVXkLbZr6hOPQDfWflbHaXMWCF7gLhesm+U6oRC+ZeiQnfoU0wC 5iUDtROgm8r+SZCmyrL2z5QZGIOpb4T02/aThBjwGWgaOiKO3wry2s8h3vfsGp6MV1h6 NtgbeFhSYtL+dnmCU1SqHI9/HadC5avYLNOsBqXDsLB5jauR+anOgmBX+yay3+/PkNfg bWtg== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6qBhciQ+DWYPmIgygmnCBz8TW3fPRGRcCubF3D54qtA=; b=lGL4xYSoW8XYi2PZlHXDC69rlC29f7v/4tfD2sj+CO6JwX7abkEQIKFb7yPkemqJeC rDu5ueR3GAF311VvSSh9MzhHt9LJ1Gm4jWJf+8q8IyNdotuvIKtXdmZZvvpnj/FqOoZH EDF4FlDrDYjqu7aZGXAIMZrBrl3srm7p4gb7nH+Hg+EvJA09W59HB6tizy2zlKGMfcve Og2QGOK4xvIz9BTbpxsBBEeEea+C0+vaW5/SIgdLIBpgd1oqYd2NiOzSqG+bJhWJFhwS UbAV9E/hIKyR6sroxQCVYSTENStrnsuIkKYyDxKgK3np4KWaSdRvWQfe9uQCLdqZ8Krm Ikbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2NcGhs1l; 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 c13si7159233edq.97.2020.05.04.07.38.43; Mon, 04 May 2020 07:39:08 -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=2NcGhs1l; 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 S1729166AbgEDOfk (ORCPT + 99 others); Mon, 4 May 2020 10:35:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:53248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbgEDOfk (ORCPT ); Mon, 4 May 2020 10:35:40 -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 37AD120757; Mon, 4 May 2020 14:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588602940; bh=/ng91w5ahKiTgqOAq3EhJa/UEnoAexrnPLSisjkQuAo=; h=From:To:Cc:Subject:Date:From; b=2NcGhs1lltWrZgLGFr9nyV1si7PFTUah17Dv93Gy3acgY/eVNgCK175zt9ULoQb/V m7zmQId2X1c5b8NAC3lqZzGj/vy8Hw1j6pcFD5S5ZRoB9VZaS995y7lW1cNSbLcYq8 E4dBOHOZcFo9eV6uZzbtp7zHTiF73MzO/LoHhj1A= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: Daeho Jeong , Jaegeuk Kim Subject: [PATCH] f2fs: remove redundant check in f2fs_force_buffered_io Date: Mon, 4 May 2020 07:35:38 -0700 Message-Id: <20200504143538.159967-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). 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. -- 2.26.2.526.g744177e7f7-goog