Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4945220imu; Tue, 29 Jan 2019 10:06:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5w0WaYvoi/LaH6NVIP0E16PAVjSWrmdSt5xV4l1nNpV1ZRzIisTn2hT3srRExv9mzjLExZ X-Received: by 2002:a62:5dd1:: with SMTP id n78mr26740711pfj.58.1548785197546; Tue, 29 Jan 2019 10:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548785197; cv=none; d=google.com; s=arc-20160816; b=WX4EQtJWRvA1e3OYBkbW1byh30VycTzeKpbR/gLFojbY0wE4Z2yIC5QryNlc3zoI9l HdEMnyCLa2sYIlPlA1CO4Ye8E+eArKqZ/Snv+hyVU4pTmeNlxT49yWqJMdRJ6tZqVoOY WnUs2qj1sU4bupzg7L4CxCkudjE5ImFtGmAcmzDRB8SWZqDTmjdLFzStBEk4IM455yQ3 /YIwp3UPmYtHrD2Or1Uj4ebf4uf9VCaJ3u++6aXm8PbP/tlrPrihAlYXlMf8BdPN+pyO 8nfUcw4GlVsD4E8kCsQrZcW//Gs7pIfPh7VxeRObTsUd+ms6JhYjJCOClFwdsVJBxOIA reZg== 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=cwEU7AT/ieVZmX0uniQzflMmYmVY27dwbxE28b4hY5o=; b=L7PMMyCA8B2ByIDhP9Jh7SLRH9M5Ed5gn+I87gbpequEU4ELj1yh4PycZ58ZgSbYUO ZAfW6YdLInRTzYHYDjnspx56UzRI/QU0Y5Tcyne7m/e1ATDa9H/7gSadjJjRMcQVxhf/ GhhTT6av4tY9EcGy0rk6PZhIrNtb/RgZjQmJ8lWUiXvbOZ7QmXMD3/bkXL1xynx86RiP j36IFut2eCbWBmwN2gYzk9rQiEEY6y+TkRzoLHN8n3K49FyrPufOKM8CAi4wN6grr6d/ Lq3VCLKOHvHy1FAJ+6Mvj9cb2OixTlVe4FdSjKGYjAW/g6UwNJnQd3tvhkE3BOJXAp9L ZhFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b="KK/BmMBx"; 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 d12si22857941pln.340.2019.01.29.10.06.20; Tue, 29 Jan 2019 10:06:37 -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="KK/BmMBx"; 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 S1728677AbfA2SEd (ORCPT + 99 others); Tue, 29 Jan 2019 13:04:33 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:39626 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbfA2SEc (ORCPT ); Tue, 29 Jan 2019 13:04:32 -0500 Received: by mail-qt1-f196.google.com with SMTP id u47so23259228qtj.6 for ; Tue, 29 Jan 2019 10:04:32 -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=cwEU7AT/ieVZmX0uniQzflMmYmVY27dwbxE28b4hY5o=; b=KK/BmMBxRo/7DcUUZt9q/dti8YEUhE3d/thibIQu8bV2rTQygTS0kCmrR7TQqsxjv/ IXFC15AMSLKeHoTT0comMRxaiJcn30X9+AZoBupPNRZJVnUVJaALfpvmO8M+ltcUZyCw JSc397vrxvhsI4FOMNo7qHuhFjQZkBYpQddKTWCHcZzYD8hEaU8EL+P/MR5V+UkWYzAV crc0b41dGGHQkS7ZeMAHvD0y9y7ZCr+CJajvUEEIQU4p/tHVhb+TVpSN8UVxe2d5Fuhv gip8uEvcGU50VFxBIzpqUaW+670MWeDvrUefxWZ+Yg+ZYui0ltaTad6tHsLjNDcGcMBl VLZQ== 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=cwEU7AT/ieVZmX0uniQzflMmYmVY27dwbxE28b4hY5o=; b=JIt4Hq1Kek0Au7O0eAWhpiRbzZVcJ/AKiQpnty+syc66Vxn2j/zk8Dc62WLRAL46gd Z2p5yfWc8p0JpzMCWNi9SyAjmwaCp37JfE5JPfjVb9EHXZ7B793BufcWhBVdnaa6Oufv 4kjX4qLrT22J/1cl4neyvi4BJXBQJ6HS3dJZw2mWhl+8lCIgl7EoJ1XUR6FOaXDCM7jP JgWHikQfD1/eNOyu5/Aa+k9y0vs/zTniACyCX8kEv4f4p7KRubHBXLBnNhByCv5BNoHW GgXMLnPiTdZfBgfq1SrJVTs3Ltf6vt1kQBECbqCLj/QtE0CS0Vsv8nuy7Cuoql69U1uN vKqA== X-Gm-Message-State: AJcUukfXZ0cwO9+F5pWX5DoZcNvIEb+lFsDc8VaTMXkW05FQayQ958VJ hsR8DxN+FMohHpSFojOa/D2APQ== X-Received: by 2002:a0c:afd1:: with SMTP id t17mr25139029qvc.93.1548785072068; Tue, 29 Jan 2019 10:04:32 -0800 (PST) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id c7sm17856693qkj.72.2019.01.29.10.04.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 10:04:31 -0800 (PST) Date: Tue, 29 Jan 2019 13:04:30 -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 05/11] btrfs: add helper methods for workspace manager init and cleanup Message-ID: <20190129180429.m7iwwrlnk2set6gl@MacBook-Pro-91.local> References: <20190128212437.11597-1-dennis@kernel.org> <20190128212437.11597-6-dennis@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128212437.11597-6-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:31PM -0500, Dennis Zhou wrote: > Workspace manager init and cleanup code is open coded inside a for loop > over the compression types. This forces each compression type to rely on > the same workspace manager implementation. This patch creates helper > methods that will be the generic implementation for btrfs workspace > management. > > Signed-off-by: Dennis Zhou Reviewed-by: Josef Bacik Thanks, Josef