Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp943118pxx; Thu, 29 Oct 2020 19:38:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrfdcREWCqt62JhueofI8975l6EWe27B+t5LJW+wIBP0TKLI7V+mJY9uv3MBfYiu1rnned X-Received: by 2002:aa7:dcd6:: with SMTP id w22mr29382edu.378.1604025519174; Thu, 29 Oct 2020 19:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604025519; cv=none; d=google.com; s=arc-20160816; b=kDywZeWUELWeYgzcSwsFzyRuUxiEScVNgcICqCtoz421pEtb1/D9X/kdIDJ5p/tC1r i2+ipC8nE8XrxQePB1pmvU0HmYuxmiPDhU9e7sKN/EWJxwDke13G7pCniA1HZ3him74Y 2/sL1HrZaXNALdvpk3pMMzt0BshxoNETOpMTe1XRXoOjDT3kCJB6ipc4heI6OeYtEUDo L49w5IbC/ODT3yy7Ub94RiXh+k5cd8uEGgihlLdT8gAthzd/5/thWDdbpCWhTFW87ZrC RB6FVDD7xShXKqCOi4BHaQJISGCO41ZCZVEaOsU/9fsNcLYDW91xz0SYrIEtL5OVUxxg bBDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=rwEhH3u9gIAPrnG5+i8fKHYrU3ItDWeMB/S5yew4eHI=; b=vRmUenQvNX1PR7nd7jaKq7nT79rhaTIWnSUwI8fIjYySFxPhnHOzgrnD3AXItsAGvu H9OisqGT4w3Cdqu8BRdIX+BgOk/MWBQTN2XAgWZfd+Xr4WL8KErl+KLW0pl8Vs2bnZ/f 218YNT5VbHIQVVm8RcheToKjAJWW2Auegb27Dt1f4EKqp/OdjV8nnRKrLIQs8IrJLQ+e 3e+/vI8oXcCUKms6kJ1eOOURkrJzrkoX1uT/7Pgrw3rc5C3nxPlKNWDV8iWxojOvpPc4 ANr994tn1FIcJNdQc8hx5ZxlTPg5bqHenQhaVMuSLpWd2lz31FtHV2e3T+lS6+bnviE2 Jyeg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si3537532edm.401.2020.10.29.19.38.17; Thu, 29 Oct 2020 19:38:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726111AbgJ3Cgt (ORCPT + 99 others); Thu, 29 Oct 2020 22:36:49 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6670 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbgJ3Cgt (ORCPT ); Thu, 29 Oct 2020 22:36:49 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CMmfR4ZVQz15LL0; Fri, 30 Oct 2020 10:36:47 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.201) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 30 Oct 2020 10:36:43 +0800 Subject: Re: [f2fs-dev] [PATCH v6 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl To: Daeho Jeong , , , CC: Daeho Jeong References: <20201030022748.332831-1-daeho43@gmail.com> <20201030022748.332831-2-daeho43@gmail.com> From: Chao Yu Message-ID: <0b009361-7aff-d2e4-59b7-3316a299627d@huawei.com> Date: Fri, 30 Oct 2020 10:36:43 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201030022748.332831-2-daeho43@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/30 10:27, Daeho Jeong wrote: > From: Daeho Jeong > > Added a new F2FS_IOC_SET_COMPRESS_OPTION ioctl to change file > compression option of a file. > > struct f2fs_comp_option { > u8 algorithm; => compression algorithm > => 0:lzo, 1:lz4, 2:zstd, 3:lzorle > u8 log_cluster_size; => log scale cluster size > => 2 ~ 8 > }; > > struct f2fs_comp_option option; > > option.algorithm = 1; > option.log_cluster_size = 7; > > ioctl(fd, F2FS_IOC_SET_COMPRESS_OPTION, &option); > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,