Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp250421ybf; Sat, 29 Feb 2020 02:49:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwIeKL10DMVBCd8XskwCUENq7IEFs6a2YXYjbFbIIyX3xyw0JELCdSg0LotxTrfZs5ruzUV X-Received: by 2002:a05:6830:1459:: with SMTP id w25mr605833otp.246.1582973385644; Sat, 29 Feb 2020 02:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582973385; cv=none; d=google.com; s=arc-20160816; b=RYI263iyTWAcVR0zK5IbLK85bv3SNzDnCjU3GY0KYor7XnyYR8k5xsNPWnJYdq4UET kMt2LCnVJ8JKQ9NEHe3Ba4zAnneE407zhCwf3JQ2n8/sUHjNganRMAmqBb+qZu2WDd6u NoxthXZ8HwpBkD3zz84V/PzVIJot7X672HGcZ+gX6q0JF79U3nQMT+5+e9Lbc/6TM4ae KVqEjByyQ8ON2Z23x5PLtLJCi3C4pZ2YoZukQvr9bGe0U+0qQoLpa4b2hJI0MX0r2kL/ dLReBjEsLdsQ8GOoujNl1SjJg+ECw14F4oUC0EC+3P3M2TBN5wIdG5+DuS3YkDiWMiPq szUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=LQprtqzfBgQXijNSRB2//zebHNQqEFmLLq6RrF0qOm4=; b=P6FXo/z+ZgnGEKLoqNpFY73ObZ5bQ0cU+UVVDbJjXKpsZptRHiRQKAOLravKDxaaDP j11oAbmvJS+fI2cd8zBwlLv3Nkc2MCgojKFEB4cLbgOrVkH7o+duwwJgOfK7gMz9TXH3 2pShn1acoiTTAPRn0GIKe+jQ7MKVvaurn7r98xlYJYstnX/m1eYX91SK9iikcisrpIn7 U9GmbDAKIDg+/rj16/3KSS/F1Zwtsc/ap92VIZUfJb3WfJAurxfBDJt0prtRrzR9Zb/i 9AnHUoReJI7MBbGtq+j9odiskjBYBTkuhsXdmpu0d4h4VRE6AFojrBoEuGvc4MhHT4G0 10sw== 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 13si3335427oiy.28.2020.02.29.02.49.32; Sat, 29 Feb 2020 02:49:45 -0800 (PST) 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 S1726824AbgB2KtV (ORCPT + 99 others); Sat, 29 Feb 2020 05:49:21 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11123 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725747AbgB2KtV (ORCPT ); Sat, 29 Feb 2020 05:49:21 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 378EF698CDA89C8DF401; Sat, 29 Feb 2020 18:49:17 +0800 (CST) Received: from szvp000203569.huawei.com (10.120.216.130) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Sat, 29 Feb 2020 18:49:10 +0800 From: Chao Yu To: CC: , , , Chao Yu Subject: [PATCH] f2fs: remove redundant compress inode check Date: Sat, 29 Feb 2020 18:49:06 +0800 Message-ID: <20200229104906.12061-1-yuchao0@huawei.com> X-Mailer: git-send-email 2.18.0.rc1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; /* * for blkzoned device, fallback direct IO to buffered IO, so * all IOs can be serialized by log-structured write. -- 2.18.0.rc1