Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4958600imu; Tue, 29 Jan 2019 10:19:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN4dmj9z7lzV8HSWgN7E0sRCGPU0Hk9DBMhparBegTaGVm2ms4CoGh7ZYHHZ0yseJ20IqEk9 X-Received: by 2002:a63:bf0b:: with SMTP id v11mr25136340pgf.302.1548785957867; Tue, 29 Jan 2019 10:19:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548785957; cv=none; d=google.com; s=arc-20160816; b=H0x6bVo9hF0cB2FpvxW855a14Uvg6TdPSv+ZfMeA8jlngrXmiTYcV0mpOWjSeVMMC3 6Ml0WN0sMZFwfYKUvbX34sbK6KlxDNXoEnK6v0w1B//nA+hYZcArBRvSJn15DogXWfbz zaaQrrJmW8Cl+MM7kIzqBraSmf1sj8gsdlZ+kFTp+VTefALyMSal2vCIkd2Oj6TN9gsa qGxAyc/JBRVGuXFnTst6Sctqbsevn636eBwUrKfvB9WRpPy1rVqg/omXltOrFpaKCKvu idaJrMXFZR7mledCDY+mKuDphlR0SznMswD16h55rYJLaEvXe+XEabMosfC5VIMGZqNP e4Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZEklhevKI3Gbhsb8btAczqDD1QOFHCflfX9NR1AtiuI=; b=kIlnWV1HE6DQGSzc8VCq4EcQBvtUlK8yD0CVOf7qW0ueEd0UZwZDM3hoRFZu6lSXCA H00HYy7nPDe5QG+UExCEhPp7iZsh9QlHVZR5uoJZqhHhUia0joD1rmoIX2ik43+uhOYr WmLgThgMzf0NT2/UpuTbtuQ7618VyusndHLP9dnrxMegOA/8u7PWeFZC11QhvhESvX8W gRIIN3ksiJhJD4WskpzfyzmFhM85Fko7t4edN3xp2pvEhCUBb8z4cJPewg0j+1SirYWT cIfsfvIGskCDJd62zEIIvdggJfgAi7zlhWKQ1O7SslCM7P3cQNEhwIRApm1ndp6txtz6 rSzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=oMpoF8oy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s66si30696pgs.115.2019.01.29.10.19.01; Tue, 29 Jan 2019 10:19:17 -0800 (PST) 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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=oMpoF8oy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728214AbfA2SRr (ORCPT + 99 others); Tue, 29 Jan 2019 13:17:47 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:37282 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbfA2SRr (ORCPT ); Tue, 29 Jan 2019 13:17:47 -0500 Received: by mail-qt1-f196.google.com with SMTP id t33so23310796qtt.4 for ; Tue, 29 Jan 2019 10:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZEklhevKI3Gbhsb8btAczqDD1QOFHCflfX9NR1AtiuI=; b=oMpoF8oy79RuME85jCKezNXquwMeoHATz7FZ4NHIYYgps1343D6U2bnUqP0o0KH/Se C9uFwqnGrrnetRAEwQbrfx2ng8r3ea9h2qmUQSu6Sgdv6FPL+7mrWQU1hIpz4d+x7UQ2 nHGvh2Qu33xo8Y3eMeVIlMWt0OTBvvewTuEyX1NX0CkklJHRB8mW7fZ6QYAxnGNsNASn KzI16qTifb5+qj1UM+xt1K22dQVVu149ptQE9BkIhEVK6NX1Bs0Z2b+C9NcJ/kxus55i TiIiKAJ9TXWsE70JlUQD7vhOj8jw3oX16/eZE3k5NW3wIvERtEY2DA8PGrviArJj+NCb z+mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZEklhevKI3Gbhsb8btAczqDD1QOFHCflfX9NR1AtiuI=; b=qu/vz93qJxrU3p3isv1Ad8px+gTaqtzRENvhp3iz5z4C3JU/2EPZhuDdl7/mfh0eDY jqs7CcNO0hD9d9AkLY4kmSaPfpiPs+XaSLArCiT9PvRaOyXms0jpWQJIO0r3SYbu0NDQ yDsDR2J/1EWjH4RJ4QZ5cWzJcfetnOZERXAkrxD63u5PRsZoOUvM6Ra9xKTwF5LdIIfo d0q8h/DP/iTdqxjBdtnpQUF56WfAImF89qy2dxliN32c1HdKiwFkUIvIbudmZyOCPpxI DnjL9PfLvzrCgBTx36VX0O66j4YGHSNIdKwS7Qn3ujuNEGjpsSIMk8EnYQZ0e2S+l+Dk NHZg== X-Gm-Message-State: AJcUukes6XHWOfaZKPIRS8yO54OE02wtZmgIeafhsktkt3lLRVPfeGYg Woc0V0WUlL/9Y0IZc/vm/NlODw== X-Received: by 2002:a0c:f403:: with SMTP id h3mr25622844qvl.137.1548785866526; Tue, 29 Jan 2019 10:17:46 -0800 (PST) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id l4sm56869941qtf.22.2019.01.29.10.17.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 10:17:45 -0800 (PST) Date: Tue, 29 Jan 2019 13:17:44 -0500 From: Josef Bacik To: Dennis Zhou Cc: David Sterba , Josef Bacik , Chris Mason , Omar Sandoval , Nick Terrell , kernel-team@fb.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/11] btrfs: plumb level through the compression interface Message-ID: <20190129181743.bap6zerlaup5ewaq@MacBook-Pro-91.local> References: <20190128212437.11597-1-dennis@kernel.org> <20190128212437.11597-9-dennis@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128212437.11597-9-dennis@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 04:24:34PM -0500, Dennis Zhou wrote: > Zlib compression supports multiple levels, but doesn't require changing > in how a workspace itself is created and managed. Zstd introduces a > different memory requirement such that higher levels of compression > require more memory. This requires changes in how the alloc()/get() > methods work for zstd. This pach plumbs compression level through the > interface as a parameter in preparation for zstd compression levels. > This gives the compression types opportunity to create/manage based on > the compression level. > > Signed-off-by: Dennis Zhou Reviewed-by: Josef Bacik Thanks, Josef