Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2129517ybh; Fri, 24 Jul 2020 05:15:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn15SCWF92l1XBZWcUQ/p9SspfVvYnOsBOB61SfUYzfrfxF7FX498jAXYVNQWYVCd0V2rg X-Received: by 2002:a17:906:d186:: with SMTP id c6mr2436005ejz.356.1595592942415; Fri, 24 Jul 2020 05:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595592942; cv=none; d=google.com; s=arc-20160816; b=DGeCXlNbBjvi4dYgd7Q4GaQGpNvJ6hCugmpxHTVuuj5Jy0s4zp6wD/qhogvLvQKvnw F4KMLGrDLRWMPsLJ29PLLJbI678kxdcXLfW6yQ3hPdREZ3e6p6jh4rCnH2YDqMzVEBRj 2bw/5zkOz81/Y7gI0GTEL/ZBYUZO2x0MZ3jN4nHptNq2X4FUzTsLMrSHaqluPrqWy/cB 0MhY+/RwqUZa18/jXVcuV9Ur07fMoaiwu7NcSn9DZ1P/fIAkh9oUfY0N0LLLhlb0hIGL 5aBOH1Hu/ZmGaTBVUvc+jrd86VTkvWd0T/ZakpZgVbevN56pNDrMbCVcTMVUHmln+X0W eNPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MNWc0su/JnnluaDA+8CCu6YuN01mXvydu0VWX6fHUwI=; b=mcVL01ktP2jg2qpzsCmQQOqADj/b4HGWdl2abbxcf3QZXvG9FOd4KniPjn6gfCTjoF KxGWIr7ydELin+zyQHuDnsCwopyP1guWzUgdaRsuiDBidG14hsw7XWgtpqTrDosGDbJX Iwt/woWFP6Gogm8mkgzeKzH1j/59Mwocugh0j/D8kyT/TyJRQmMTv0J9feC4BSCbwaJw YoNgGlIhpQC+9DR06IDYuVkvNeRz9/RpvJ/TKsgTDCljyjqctSDIImQ6/fAaBQjpfqwr 0hLjuLZMjeL0/CCDlTpKyP1SthHE6i9GZsI+UeCziRTW32jRgBnQ5pMq8Iu1iZUx5AHk a+kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TYl8QLio; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz19si474539ejb.202.2020.07.24.05.15.17; Fri, 24 Jul 2020 05:15:42 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TYl8QLio; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726759AbgGXMM4 (ORCPT + 99 others); Fri, 24 Jul 2020 08:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbgGXMMz (ORCPT ); Fri, 24 Jul 2020 08:12:55 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AD68C0619D3; Fri, 24 Jul 2020 05:12:55 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id a8so6879246edy.1; Fri, 24 Jul 2020 05:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MNWc0su/JnnluaDA+8CCu6YuN01mXvydu0VWX6fHUwI=; b=TYl8QLioQBYmYF/e7BIhFpjG+1MonWCfI+IOfU5BxHz+b1Ycw62QsoH1U0M5QfeP2F k06vKn99Rwy/ZLjZu3mTPAdJMSvfTPIKjBpNMd3WcXe9gyV2Wclu7SnkwKbBazSmnHnH Mh5THBiwufkrdW7Cc/1lqulna+PtuQhLAVPPJ8d5UMMAQMzYSB8g01KsAX0BWNdb+SxI A1KCrF326yh2LNcmQnKc5z4LNVE7B1jcnzE812DvEAA7b1Jg492XW4YyFlxHSggOZ3at InKc7a3xf5yx/I/wVBt7A9czZY6GgxN4CDLZh+LEBn8sAGhnJNTvcL1H7ErBr3T2VarL +gDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=MNWc0su/JnnluaDA+8CCu6YuN01mXvydu0VWX6fHUwI=; b=eXW8s5Lvr3I8AD/wrUhj4VCzOzQchX2dz0KRc1hNNAgMNl5DSwH6g22PN8PJ/iGYQM 7bLgSeRDE8arhcmgB5vJV5dzKuheHAyRxiuud6cPPESMtsnmymZ2W5i4oLhfyTTPR09F z6K+dcIGFmc4SBj8QvGrXPZEy2za4Ug3S86V4G1RaILffuqX90dLUMecyeeRHM9m1JUk nzib6gowLneiYrAN1yAqzuo/eaGgqMaJgOZKSpeqXDN/grIeSkFjz7EcIXFz2NOryZSW efkdo+hmEAMvfG8hZsfc0p+X/01Sx6zTna2fD12+FhY6kH59rzOH4oQC0Y1PBaJr0fpY HOqA== X-Gm-Message-State: AOAM530Ig0SCV6PxmKErOnx6+L1Q1UiJBzDeKjBQKbUDqjJ4zsHLJG9Z fX5StN4YoqYYFs+6GUJR5tFp7sTF X-Received: by 2002:aa7:d049:: with SMTP id n9mr8952718edo.39.1595592774091; Fri, 24 Jul 2020 05:12:54 -0700 (PDT) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id o15sm615607edv.55.2020.07.24.05.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:12:52 -0700 (PDT) Date: Fri, 24 Jul 2020 14:12:50 +0200 From: Ingo Molnar To: Nick Terrell Cc: Borislav Petkov , Thomas Gleixner , linux-kernel@vger.kernel.org, Chris Mason , linux-kbuild@vger.kernel.org, x86@kernel.org, gregkh@linuxfoundation.org, Petr Malat , Kees Cook , Kernel Team , Adam Borowski , Patrick Williams , rmikey@fb.com, Patrick Williams , Sedat Dilek , Norbert Lange , Andrew Morton , Alex Xu , Arvind Sankar , Nick Terrell Subject: Re: [PATCH v8 2/7] lib: add zstd support to decompress Message-ID: <20200724121250.GA632343@gmail.com> References: <20200723192801.351114-1-nickrterrell@gmail.com> <20200723192801.351114-3-nickrterrell@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200723192801.351114-3-nickrterrell@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Nick Terrell wrote: > +/* Size of the input and output buffers in multi-call mode. > + * Pick a larger size because it isn't used during kernel decompression, > + * since that is single pass, and we have to allocate a large buffer for > + * zstd's window anyways. The larger size speeds up initramfs decompression. > + */ > +#define ZSTD_IOBUF_SIZE (1 << 17) Nit: s/anyways/anyway Also, please use the customary (multi-line) comment style: /* * Comment ..... * ...... goes here. */ specified in Documentation/CodingStyle. Thanks, Ingo