Received: by 10.213.65.68 with SMTP id h4csp2045685imn; Sun, 1 Apr 2018 23:09:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx48cw3EguPDPzKnFbD5HMct2MPwzRHjlK28js54SxRisba4Bf4+3rGGEH0/Cd3hBg+XevVYJ X-Received: by 10.99.47.4 with SMTP id v4mr5636418pgv.42.1522649375558; Sun, 01 Apr 2018 23:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522649375; cv=none; d=google.com; s=arc-20160816; b=drnpWTSbwGPv/aWzVSVEagCV9hic0JMWDG5WScLD2IlXb8hIhJirWlBx/poYnS7Xtj qPXD17MnFx3hAcWfo+m9k+CmHPGpemvSuHe2XtOJDOg9cwixT7l+28bfFuPrKGZNmGVD PBaW3SmBH5Ed8BKFcgHa3KAT/nV8TTnj0BwhPJ/nXyDu55GQWrXGz8xPvVjHEtfDAegA CY0ykPTISLMoLLICvaGAD2AF7QyzjtCBOCl2YYnRUbw/sfDW3X1VGw7zkamYqQsHAYiK wCHx5JY5bjTPRMkAfMfpK7Jnay/IrXkFdsYF7gJyBFwcau67iROKOne2GCB1ZomFa2CQ U7mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=ogfSmY3yUjSlK3BsNP6Be3JhDc2KGeyO20+sbL9uhxw=; b=dsbM+eukaedgGC8yQWFUBjIDez71kUh6dMhE+MnkkRtvQSj+bLPaL2bAMPGHN3B4st 0HilWcCd3bTw/aTB4wZLJ+m2agkYYnSqTf5mTrERZgUBXUo3DRsBXziR52dlb56adn9y EHkkpJJIw/7L+CKOghN6EDUmLXXpwHsPbAVgIE4WM8gqj8AjcRen2yi0azzaEfnOByzY R1lej48McrVMxHeaDuxBxKxaMyKlr+yPwxBzGLrde//1AFZbt0nZ7KFdeFs9a3zeh5BH o08NYgtcBDa4iM5nS6uh1n6rj1+X7MBAj0G5Z7chAr90nGIXe6WQcrlRBQK4Ls8R6Wp2 g30w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=P9OOo+p0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si1126103pfi.187.2018.04.01.23.09.21; Sun, 01 Apr 2018 23:09:35 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=P9OOo+p0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754138AbeDBGIA (ORCPT + 99 others); Mon, 2 Apr 2018 02:08:00 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:38398 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751556AbeDBGH6 (ORCPT ); Mon, 2 Apr 2018 02:07:58 -0400 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180402060756epoutp01fd258ce827252cbfbeabd2519af640d0~hiXMVzsG32946529465epoutp01P for ; Mon, 2 Apr 2018 06:07:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180402060756epoutp01fd258ce827252cbfbeabd2519af640d0~hiXMVzsG32946529465epoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1522649276; bh=ogfSmY3yUjSlK3BsNP6Be3JhDc2KGeyO20+sbL9uhxw=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=P9OOo+p0aje+QILSBnq7yCwHHE12wI7tMUn2swH7vZth5MV6V91D5AhIi+q39uvcc jUNke26BtbRm9RV0CHsQ7xJ6MWuwGPVY8kuQPAAIauC/Lr7cFvJd+gOAtCC1nY7Ihq 4R0wFdWzMdD5oGj+sAd5zf8qgnXEH0tcwmoP27r8= Received: from epsmges5p3new.samsung.com (unknown [182.195.40.74]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20180402060754epcas5p408c5b3c309b4a5418b28c368e2523abb~hiXK_iSGU2746627466epcas5p4B; Mon, 2 Apr 2018 06:07:54 +0000 (GMT) X-AuditID: b6c32a4b-fcbff70000000fe6-8e-5ac1c8bad436 Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 27.EC.04070.AB8C1CA5; Mon, 2 Apr 2018 15:07:54 +0900 (KST) Mime-Version: 1.0 Subject: Re: [PATCH 1/1] lz4: Implement lz4 with dynamic offset length. Reply-To: maninder1.s@samsung.com From: Maninder Singh To: "sergey.senozhatsky.work@gmail.com" CC: "herbert@gondor.apana.org.au" , "davem@davemloft.net" , "minchan@kernel.org" , "ngupta@vflare.org" , "keescook@chromium.org" , "anton@enomsg.org" , "ccross@android.com" , "tony.luck@intel.com" , "akpm@linux-foundation.org" , "colin.king@canonical.com" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , PANKAJ MISHRA , AMIT SAHRAWAT , Vaneet Narang X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20180321074948.GA2746@jagdpanzerIV> X-Drm-Type: Y,confirm X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20180402055152epcms5p546fdb62381b769ed0c719f3bedcee3b8@epcms5p5> Date: Mon, 02 Apr 2018 11:21:52 +0530 X-CMS-MailID: 20180402055152epcms5p546fdb62381b769ed0c719f3bedcee3b8 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE X-MTR: 20180402055152epcms5p546fdb62381b769ed0c719f3bedcee3b8 CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPJsWRmVeSWpSXmKPExsWy7bCmlu6uEwejDA6f17e4uDvVYs76NWwW B7dqWmzf+I3V4vfqXjaLOedbWCy6X8lYnOnOtbh/7yeTxeVdc9gsln19z26xoWUWu8W9N1uZ LB5NmMRk8ebCPRaLQyfnMjoIeGzbvY3VY1ZDL5vH7IaLLB5bVt5k8pjQ/4nRY+esu+we2w6o eize85LJY9OqTjaPEzN+s3j0bVkFlPy0mdXj8ya5AN6oVJuM1MSU1CKF1Lzk/JTMvHRbJe/g eOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoLeUFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnF JbZK0YaGRnqGBuZ6RkZGeiamsVZGpkAlCakZx5/1MhdcYK94MaOVsYHxPWsXIyeHhICJxITF LWxdjFwcQgK7GSWefGhh7mLk4OAVEJT4u0MYpEZYwF1i/uQrjCC2kICixIUZaxhBSoQFDCR+ bdUACbMJ6Ems2rWHBcQWEfCWWLK2lQnEZhZ4xiqxblsoxCpeiRntT1kgbGmJ7cu3go3kFDCU ePn/C9Q5ohJ/GmBqRCXeH5vPCGGLSLTeO8sMYQtKPPi5GyouI7F6cy8LyPkSAs2MEi8WtzBB OFMYJRYdb2WDqDKXOH9yPtRfvhLb7luDhFkEVCUernvKDlHiItE2/QYzxNHyEtvfzgErZxbQ lFi/Sx+iRFZi6ql1TBC2rcTLp11Q5XwSvb+fMMH8uGMejK0q0XJzAyvMv58/fmQBGSkh4CGx 4IXZBEalWYhwnoVk7yyEvQsYmVcxSqYWFOempxabFhjnpZbrFSfmFpfmpesl5+duYgQnbi3v HYybzvkcYhTgYFTi4Z1hczBKiDWxrLgy9xCjBAezkgjvikVAId6UxMqq1KL8+KLSnNTiQ4ym wBCYyCwlmpwPzCp5JfGGJpYGJmZm5oYGBpYmSuK8joEuUUIC6YklqdmpqQWpRTB9TBycUg2M aUI8autm5Fie3JrSwHjwzIbfSgdyn0ZwC/56VZvZ3aZ9jSNrq4fLs6vNEaJrpbRDOj17uBs7 Q9y3n3Zp7vE9+yGive868zvetu4Pl6/oLOTs2bSOb4Jw75IsJrHD+i3vOud/Y/zkZ7TE+M3y 6U3PW/qbNRibZs2POq/he06suPBaQnLstlQlluKMREMt5qLiRADFCFiy8gMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180321044149epcas5p12cba1afa5fc0f493a47fe20c4a7394bd X-RootMTR: 20180321044149epcas5p12cba1afa5fc0f493a47fe20c4a7394bd References: <20180321074948.GA2746@jagdpanzerIV> <1521607242-3968-1-git-send-email-maninder1.s@samsung.com> <1521607242-3968-2-git-send-email-maninder1.s@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, >> diff --git a/drivers/block/zram/zcomp.c b/drivers/block/zram/zcomp.c >> index 4ed0a78..5bc5aab 100644 >> --- a/drivers/block/zram/zcomp.c >> +++ b/drivers/block/zram/zcomp.c >> @@ -17,11 +17,15 @@ >> #include >> >> #include "zcomp.h" >> +#define KB (1 << 10) >> >> static const char * const backends[] = { >> "lzo", >> #if IS_ENABLED(CONFIG_CRYPTO_LZ4) >> "lz4", >> +#if (PAGE_SIZE < (32 * KB)) >> + "lz4_dyn", >> +#endif > >This is not the list of supported algorithms. It's the list of >recommended algorithms. You can configure zram to use any of >available and known to Crypto API algorithms. Including lz4_dyn >on PAGE_SIZE > 32K systems. > > -ss Yes, we want to integrate new compression(lz4_dyn) for ZRAM only if PAGE_SIZE is less than 32KB to get maximum benefit. so we added lz4_dyn to available list of ZRAM compression alhorithms. Thanks, Manider Singh