Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1898673rwi; Thu, 3 Nov 2022 10:15:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66fnxiNMKeiJFHixK4mt58UmACMY7yDG4GhgY5je/Toc0dAbPcQ6sGCwen0mXnPSlW+O5X X-Received: by 2002:a50:c21a:0:b0:463:c2ac:95f6 with SMTP id n26-20020a50c21a000000b00463c2ac95f6mr13817163edf.398.1667495716317; Thu, 03 Nov 2022 10:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667495716; cv=none; d=google.com; s=arc-20160816; b=aBtjHDwP+EPf0FgCgiW6ib1F9hF1nSuAEzvMKI2HvX4mMaf9ITTrig1NNsXlciZHam tg78OFD7s9wZdm/wKAzbUwd22wLHDpP0GyeIISrO0/fDyZSi7NHO7D2JQP6UxVbYvpbL Xf6ZxBXCuPgtP8NjJEC+l0YopujBDxbzUEtpuqHW4XPNdXFh0yalTdjb0iWhUG806TvA 8nhNn/qxnJ6DyaW6+WE/fSyLbCAzGu7iB4XhYvovUWYO1FWx0mCo3zpq2AhoS733XUEx SrtI4lVd4o4/Cphavvj7RDTk2VM9e526U6lmcSyd+8qKyiPloQE9NJW3FJd1u1qAwPbU AOOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=EyEaiXYwGZ66+eMx05Q+3jfcs0ljEUn1snD5FexMKL8=; b=dw2fXghpUgYQierm5JVxtMKrkFJ5DOuRrTPNQtl4Cx1gmxlunyJTrfz9fq//PxwoLq egzpNPXYlMMf5/sAMIYiz/yxb7mMqzP6cPoSXSUcHJrz9gtDjw4Ea9N+gzuS+0qenj2J 8kcd8VGJm+nJU2VERnkhHOJFPeF712Pml0yjhAHwvFEYWPtIRdFhLksMZwAbiQDRCi2N +nzro4yIx0C6MixiOIWhqLOarH8Z0uTmBK/Q7RVu6UjuPpQaZjsASUR7sSxIeiSd6jz+ HL2soZQOTHQbs6xS8k5tJIarnaNdP01qaS9QvsVRgC7NIylegJbRQ2l1vvrIJcoWiZFG i7lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A8fXGXXA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp3-20020a1709071b0300b007a8a40e6146si1990982ejc.363.2022.11.03.10.14.50; Thu, 03 Nov 2022 10:15:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A8fXGXXA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231538AbiKCRMY (ORCPT + 98 others); Thu, 3 Nov 2022 13:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231724AbiKCRLn (ORCPT ); Thu, 3 Nov 2022 13:11:43 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D20B1E3C8 for ; Thu, 3 Nov 2022 10:11:13 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id y4so2547777plb.2 for ; Thu, 03 Nov 2022 10:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=EyEaiXYwGZ66+eMx05Q+3jfcs0ljEUn1snD5FexMKL8=; b=A8fXGXXAcSb8wP6STdb3cm24s8EfdklK5O49e41+AWr+xMmeIcMh3Fa3jgTVN1ZXks hLpfF1BKpLP3StIca1AM4j41UaEAXPWH7qMdzzQHXmYG0qFT+nPAYWw4L0bKuJ1B+kNP voWIeMOvv7SwoFqzlGJDm0efaNkKZcmRr+Zk98VfWoV8zzRW9yiLUZ1/rzBVcI68bVDc fznnlq1+dPNdvGjSexG/PsOZAxivX5KtC3EBe3KQ5HWIs1uQfKMhFwZOPXC8qrVVvrLl eyodCLe2TpOK3nLQDX0vITvS4WIPpkUlhCDOfzI56DXe2zURNZmMZ3aNjl8i2yHlZ8tS t04A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EyEaiXYwGZ66+eMx05Q+3jfcs0ljEUn1snD5FexMKL8=; b=TDbTyUJpo8TOpZUB57XshemwBD1TEv+JKy7JlWS8gIYFR1LMNEN1RDdbkLxDndN/Et /eueoE61rQgkrJF0FJK84BA6FWj0EqQW29S1sPrERYWEHqN8pZ7HxFTT45GiSehrTTl5 tq300TrzjcziI6r4Nn76xLsbRhnPVTnqx05+UXNDh+6rpwfNM6gy3UHc1Vm+UOPXp4Kb JeqeXF4Rd4DBKLI7YxVctOW8Aq8vjtLreclNjkodRONIDQ4EdM3HUzFzLRVf9/cYvqdI axlWPygf1Vjk/EZHomclsSp3hRzgRunBeBIPsQCzjLsKTtvjFwzWILISMP+sm+D5xc2D Epcg== X-Gm-Message-State: ACrzQf3DB+uISb2dDk/x1MaVPZ/hNb0lN/1ev+npC6+QozyVjUySRIsp tHtpCeZl+kiRQjtaYnNVR9c= X-Received: by 2002:a17:903:292:b0:186:dae9:c089 with SMTP id j18-20020a170903029200b00186dae9c089mr30644140plr.31.1667495472577; Thu, 03 Nov 2022 10:11:12 -0700 (PDT) Received: from google.com ([2620:15c:211:201:3d65:7dc2:c62a:5d98]) by smtp.gmail.com with ESMTPSA id j36-20020a635524000000b0046ec7beb53esm1040263pgb.8.2022.11.03.10.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 10:11:12 -0700 (PDT) Sender: Minchan Kim Date: Thu, 3 Nov 2022 10:11:10 -0700 From: Minchan Kim To: Sergey Senozhatsky Cc: Andrew Morton , Nitin Gupta , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv4 2/9] zram: Add recompression algorithm sysfs knob Message-ID: References: <20221018045533.2396670-1-senozhatsky@chromium.org> <20221018045533.2396670-3-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FSL_HELO_FAKE,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 03, 2022 at 01:09:49PM +0900, Sergey Senozhatsky wrote: > On (22/11/03 12:05), Sergey Senozhatsky wrote: > > What is the use case for removal of a secondary algorithm? > > > > > My point is that we don't need to implement it atm but makes the > > > interface to open the possibility for future extension. > > > > > > What do you think? > > > > So, as far as I understand, we don't have reason to add remove_recomp_algo > > right now. And existing recomp_algo does not enforce any particular format, > > it can be extended. Right now we accept "$name" but can do something like > > "$name:$priority". > > Or with keywords: > > name=STRING priority=INT > > and the only legal priority for now is 1. I like it.