Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp260853ybx; Fri, 1 Nov 2019 03:07:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx41nyGuMHCIC8bKIXV5AyPVpxh7UCHGyl5iFhRlojA9MTroB42MUMBPGjil7rkgdqM+7OQ X-Received: by 2002:a17:906:a986:: with SMTP id jr6mr8799530ejb.158.1572602836690; Fri, 01 Nov 2019 03:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572602836; cv=none; d=google.com; s=arc-20160816; b=1IRxEy7ui/MtoOIKFlUKf9FZ4Q4gHN80sOT2rj8Gz1IFUpkh7UBjTf/7x4F5zQb/J6 uCPr1P61YLYpy+3R/k3nJ92xU2S9PpDducdkLMwm6twUsTD+GGbffGWdEUOlA4q/aM1g F5UrZ7KEoC9kTGWVaQvyk4xdrDQ/UlaawAhKy+FDRB13T4O9kanqwChg8Xm2h1TBCdbp oDBRP/zqJmJxD9jz+Nn62e880V043dKIRsxkfap7JXb7rbMNOG91IuNXQu85sVBVzuBV 0mQ/62x8+p1UStL/CB7mxq6y/+jPKOumnt62SjUOzE7EbTXXJI3BjJLS6g6YMnj3v+0F oLZA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=aGih0enTHD8cCKoeWNvOZZsWAV3ZuUgTmX81bqIw/co=; b=Bit+3N1cnZYYTsXa6Ws4Lb+XiDkh4pPn4Xnf4sFyd9JntFZuw86XxUL1wJkOuNIWeJ aar4kknHvt7dV5b1/j7FQt+4Ejhf7GjIuK4JAJ8O9W1Q/7HFo3TQiEEpAykWNmqwUoPZ w0qD3SYZ3vcPGDLAuHxBqbuHhJkeDLR9xnz58QRmOtzJHmY8a29ul8i96hEPyUwcoV71 TGHfoVabtzCyfnUQ9LM9JsbrKytt14IWeBccQXQO9IK1/GKeSiooEzIAtFzrADotM32R GrdELhEHc+gQviS601biIh/5XO3vXG2d+0eBmVcdHuOhEFUG7qwwylPIC3oJFHOFXqBr k8SA== 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 ce11si6870048edb.391.2019.11.01.03.06.49; Fri, 01 Nov 2019 03:07:16 -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; 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 S1729312AbfKAKFv (ORCPT + 99 others); Fri, 1 Nov 2019 06:05:51 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5248 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728048AbfKAKFv (ORCPT ); Fri, 1 Nov 2019 06:05:51 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 263B1D67FC4C1998E218; Fri, 1 Nov 2019 18:05:49 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 1 Nov 2019 18:05:46 +0800 Subject: Re: [RFC PATCH v2] f2fs: support data compression To: Jaegeuk Kim CC: , , References: <20191029092730.109428-1-yuchao0@huawei.com> <20191031160105.GC60005@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: <33c09ea0-b521-77b7-dd84-a3ede003a793@huawei.com> Date: Fri, 1 Nov 2019 18:05:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20191031160105.GC60005@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/11/1 0:01, Jaegeuk Kim wrote: >> +f2fs-$(CONFIG_FS_COMPRESSION) += compress.o > CONFIG_F2FS_FS_COMPRESSION? Fixed. > >> +#ifdef F2FS_FS_COMPRESSION > Do we need this? Ditto. > >> +bool f2fs_is_compress_backend_ready(struct inode *inode) >> +{ >> + if (!f2fs_compressed_file(inode)) >> + return true; > #ifdef F2FS_FS_COMPRESSION >> + return f2fs_cops[F2FS_I(inode)->i_compress_algorithm]; > #else > return -EOPNOTSUPP; > #endif Ditto, I kept return value as boolean. >