Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp923558pxx; Thu, 29 Oct 2020 18:54:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDNRR9j9OnPc2SRM/gJzOZ3oZUKm8+o8LNLNVjWK9e8Z1P4OFqJYiX7A0C2aogK4Avsspc X-Received: by 2002:a17:906:1411:: with SMTP id p17mr264934ejc.102.1604022863746; Thu, 29 Oct 2020 18:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604022863; cv=none; d=google.com; s=arc-20160816; b=cuttueOrdoqR/WHiJFzWhMRImhrvkDMgyrgj0KvO9B0appIriFQAQZcsQVOyt6gXtg c6hPKOicprYMpNtXFxd8fOEsNBwWkihIW+BjDfmh3bOBWx9TN8vFLbm9dJpEoRwaKiqX bv7H6rrrSBe0zK41Asz6PlRMVrc2ObNa4SDGmGWhkmwv48a8PR0fe69Wy1Dzt4UNJh0b qW9OSGJPO0o9TXP3KkGIpTiMJEF6nJnFJ3oIsGf0hABWZ97xO9AXaBRXaoLqE+zSNN1f xYDJAvp0mw0Bsy+9bYBhgsRsvn4xmi1+3WG294N3lUkdQzjMfnvscf8jNwqhCTHfi0NH HXcw== 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=ZVkiMhsOX//WuwINyL54KeYhAXh5QNMekjuTJMh1DfE=; b=ZNj5xZDvx5iexekrNeolSVKaRN7ATCu8iNC1ZfGhxli1f92uv2W8/RE76hM0s0Bc+y DUKf+SCt4hTLi24SOS+tW/kWyyLjvepzTEi+tNVrwfI5iI4waYieZzNiLNQVPPKd+yrz CBTzkDPu/CshIt5AvNRBIg4mj7w5/fDpVo7YFY97YMH5ESgZfPoIXyDsyLIMBAllh/u+ l2KScrc63O2dFL84+/4cKUd+A/jYRzeosZI/5NHJTwbLUaZNxYtLq3neh8rXB9RrtBwL wwWIZrVVEKu7+weClxf4qWkZ6BgWuwqW7K045YIcaKMFw2Hmn+Cc8t46236gSuNl3+ES 8BUQ== 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 jz5si3230437ejb.728.2020.10.29.18.54.01; Thu, 29 Oct 2020 18:54:23 -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 S1726419AbgJ3Bw1 (ORCPT + 99 others); Thu, 29 Oct 2020 21:52:27 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7100 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgJ3BwS (ORCPT ); Thu, 29 Oct 2020 21:52:18 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CMlg60RdbzLmp9; Fri, 30 Oct 2020 09:52:18 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.202) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 30 Oct 2020 09:52:15 +0800 Subject: Re: [f2fs-dev] [PATCH v5 2/2] f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl To: Eric Biggers CC: Daeho Jeong , , , , "Daeho Jeong" References: <20201029041538.4165209-1-daeho43@gmail.com> <20201029041538.4165209-2-daeho43@gmail.com> <92f4da8e-27a1-7577-84f9-39038eaa88cb@huawei.com> <20201029155453.GB849@sol.localdomain> From: Chao Yu Message-ID: <69dfcb36-158c-e524-494c-6c5377a56945@huawei.com> Date: Fri, 30 Oct 2020 09:52:15 +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: <20201029155453.GB849@sol.localdomain> 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/29 23:54, Eric Biggers wrote: > Note that my intent with recommending ENOPKG was for it to be returned in the > !f2fs_cops[algorithm] case, similar to how opening an encrypted file when the > encryption algorithm is recognized but not supported by the kernel returns > ENOPKG. For a truly unrecognized algorithm (algorithm >= COMPRESS_MAX), EINVAL > would probably be more appropriate. So if !f2fs_cops[algorithm] is now allowed, > then ENOPKG should no longer be among the error codes this ioctl returns. Agreed. Thanks, > > - Eric > . >