Received: by 10.213.65.68 with SMTP id h4csp2046324imn; Sun, 1 Apr 2018 23:10:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49PBULL5utzYvbQGYdah1CTOi0VP8N7b46so0SiFOIl3nEerT3x+odsmFyzcjd3qnn/8Js5 X-Received: by 2002:a17:902:7049:: with SMTP id h9-v6mr8578226plt.386.1522649436215; Sun, 01 Apr 2018 23:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522649436; cv=none; d=google.com; s=arc-20160816; b=OHh+oM/uiPhsNQ1vLwICQQb6zap/pOJ1zX9Mq4rXmwk5OL562Mz1wcRFQS0yCtiIR2 CLz9nb6LH3bLinF3gXp/ifJ23Pv+IH4Zd3CFNtYMLlVyxVZmHHg8MwPbcxTo1NHeZehc z4FZosu0gvMjpVoJby0qO91ToPXqG9pBhNcPP2IPJJnXcHwlkx4OA6rXnWLbn7hXc/m0 +8UI9AIgGfPZ+/F39I8JRbOe/2wpjwn2U3j8XX9SYHGGstkxe0sdZbXD/ajhgwIFZJrh sPLaOtv62zzAv/gTpfDPN0R8M7nZ7LslB3JRl7A39bbcVihGY7D0oUOWInP4j0ZVaMc8 GvnA== 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=68SMKQ3b4mJkOGusxmGtZXBfWjhflc/JyaYOHJQ7zKA=; b=yfBznujqVgbCRXXJY1GxTJbxQEt/2s7K8ycjnTXfsLuwtWgUxDSwCRfxQKssvbiyWP /0Oobv1vWBLvzcICBUT23p5zGGX+aEZNeJLoe7KxVygcPh+i8nVvVTc+LAd5p9zJQzZT OtiUytdLrSf0m6bRWOVtQmE/6LLLJArBDCU3RQ1HIRs5zOCwkBCvSstmMRNm7FvB2hrs vrnsrMqkrHUyfXhuvQRgniqYQ/xUyNPm86p44cmX4pa6giyay6lNDHP/LJDSQJ5TjwvV nlT+jhixrPRiKDoQO4yhphJs0j6Oxn3lSdowXYITsizKzryQNjyWy2BwKNxGI2+da8p8 G8sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZUN7Sbpi; 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 e4si9370959pgp.431.2018.04.01.23.10.22; Sun, 01 Apr 2018 23:10:36 -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=ZUN7Sbpi; 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 S1754200AbeDBGIf (ORCPT + 99 others); Mon, 2 Apr 2018 02:08:35 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:58337 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbeDBGIc (ORCPT ); Mon, 2 Apr 2018 02:08:32 -0400 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180402060831epoutp03fa2221c9495961134e7dfa513a7ff8cd~hiXsqXVIB0489804898epoutp03d for ; Mon, 2 Apr 2018 06:08:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180402060831epoutp03fa2221c9495961134e7dfa513a7ff8cd~hiXsqXVIB0489804898epoutp03d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1522649311; bh=68SMKQ3b4mJkOGusxmGtZXBfWjhflc/JyaYOHJQ7zKA=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=ZUN7SbpiCM4mB8tUDH9y2l6sm+ED0BX44agxweFxIjLGBAVuaVol9praUCSpq5HOQ MDJKeuHrq6eDDoh/mwsxK9im/We7LmwEUAQBW9Z6tOWcXqKsIWZVuCNeYQre2pO1ll 95HIeEgMdBboDO6YbA9+4jYzX60gS2Nv35kSEhgE= Received: from epsmges5p2new.samsung.com (unknown [182.195.40.72]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20180402060830epcas5p4158790dbe7cbd0b458c210353c6f17c5~hiXsPDR6V2746627466epcas5p49; Mon, 2 Apr 2018 06:08:30 +0000 (GMT) X-AuditID: b6c32a4a-d07ff70000000fed-e1-5ac1c8de4203 Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 27.83.04077.ED8C1CA5; Mon, 2 Apr 2018 15:08:30 +0900 (KST) Mime-Version: 1.0 Subject: Re: [PATCH 0/1] cover-letter/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: <20180321064128.GA468@jagdpanzerIV> X-Drm-Type: Y,confirm X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20180402060354epcms5p391e8f43648898d6d7dbd2ceb274f3cd9@epcms5p3> Date: Mon, 02 Apr 2018 11:33:54 +0530 X-CMS-MailID: 20180402060354epcms5p391e8f43648898d6d7dbd2ceb274f3cd9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE X-MTR: 20180402060354epcms5p391e8f43648898d6d7dbd2ceb274f3cd9 CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJsWRmVeSWpSXmKPExsWy7bCmuu69EwejDHYuVbG4uDvVYs76NWwW B7dqWmzf+I3V4vfqXjaLOedbWCy6X8lYnOnOtbh/7yeTxeVdc9gsln19z26xoWUWu8W9N1uZ LB5NmMRk8ebCPRaLQyfnMjoIeGzbvY3VY1ZDL5vH7IaLLB5bVt5k8pjQ/4nRY+esu+we2w6o eize85LJY9OqTjaPEzN+s3j0bVkFlPy0mdXj8ya5AN6oVJuM1MSU1CKF1Lzk/JTMvHRbJe/g eOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoLeUFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnF JbZK0YaGRnqGBuZ6RkZGeiamsVZGpkAlCakZPVO2MhVc4K5Yv76PrYFxBXcXIyeHhICJRN/d pSxdjFwcQgK7GSW+Hp/E2MXIwcErICjxd4cwSI2wQJhEx8W97CC2kICixIUZa8BKhAUMJH5t 1QAJswnoSazatYcFxBYR8JZYsraVCcRmFnjGKrFuWyjEKl6JGe1PWSBsaYnty7cygticQGPO 397HCBEXlfjTAFMjKvH+2HyouIhE672zzBC2oMSDn7uh4jISqzf3gp0vIdDMKPFicQsThDOF UWLR8VY2iCpzifMn54N18wr4SrReWMQKYrMIqEqsejAXapuLxPqjjcwQV2tLLFv4mhnkSWYB TYn1u/QhSmQlpp5axwQSlhCwldi6Owqimk+i9/cTJpgfd8yDsVUlWm5uYIX59/PHj1CbPCTm 7FvEPoFRaRYioGch2TsLYe8CRuZVjJKpBcW56anFpgVGeanlesWJucWleel6yfm5mxjBqVvL awfjsnM+hxgFOBiVeHhn2ByMEmJNLCuuzD3EKMHBrCTCu2IRUIg3JbGyKrUoP76oNCe1+BCj KTAEJjJLiSbnA/NKXkm8oYmlgYmZmbmhgYGliZI4r2OgS5SQQHpiSWp2ampBahFMHxMHp1QD 4/a9X2dnv8xODDDymFDivIFlIe+Og2bfnusuSi9cnTT/jqz5gToeJ9YXFxn5771clB33agfr 1S6XmNoLl7ZNXC8kb/Ra5se3dZdfbVLbu9LP1yzLpUP2wDHBspbZCxdziSzfM004UeXA8c6N MocerNp3e1uihZXhcrl8rr5k24VZX6stv52yeaTEUpyRaKjFXFScCADw9BJX8wMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180321044137epcas5p221e7ee4a0b7464eaa00dad8320f0251d X-RootMTR: 20180321044137epcas5p221e7ee4a0b7464eaa00dad8320f0251d References: <20180321064128.GA468@jagdpanzerIV> <1521607242-3968-1-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 =C2=A0Hello,=0D=0A=0D=0A>>=20(Added=20cover=20letter=20to=20avoid=20much=20= text=20in=20patch=20description)=0D=0A>>=20=0D=0A>>=20LZ4=20specification= =20defines=202=20byte=20offset=20length=20for=2064=20KB=20data.=0D=0A>>=20B= ut=20in=20case=20of=20ZRAM=20we=20compress=20data=20per=20page=20and=20in= =20most=20of=0D=0A>>=20architecture=20PAGE_SIZE=20is=204KB.=20So=20we=20can= =20decide=20offset=20length=20based=0D=0A>>=20on=20actual=20offset=20value.= =20For=20this=20we=20can=20reserve=201=20bit=20to=20decide=20offset=0D=0A>>= =20length=20(1=20byte=20or=202=20byte).=202=20byte=20required=20only=20if= =20ofsset=20is=20greater=20than=20127,=0D=0A>>=20else=201=20byte=20is=20eno= ugh.=0D=0A>=20=0D=0A>So=20what=20happens=20if=20I=20compress=20the=20data= =20on=20a=20system=20with=20no=20dyn=0D=0A>offset=20and=20then=20send=20it= =20over=20the=20network=20to=20a=20machine=20which=20has=0D=0A>dyn=20offset= ?=20Or,=20say,=20I=20have=20a=20USB=20stick=20with=20a=20compression=20enab= led=0D=0A>FS,=20store=20files=20on=20a=20dyn=20offset=20enabled=20PC=20and= =20then=20mount=20that=20USB=0D=0A>stick=20on=20a=20machine=20with=20no=20d= yn=20offset=20support.=20And=20vice=20versa.=0D=0A=0D=0A=0D=0Alz4_dyn=20is= =20not=20an=20extension=20of=20LZ4=20so=20there=20is=20no=20backward=20comp= atibility.=0D=0AConsider=20this=20as=20a=20different=20algorithm=20adapted= =20from=20LZ4=20for=20better=20compression=20ratio.=0D=0A=0D=0AThanks=0D=0A= Maninder=20Singh