From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D0E7C3B18C for ; Thu, 13 Feb 2020 16:17:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E83EC2073C for ; Thu, 13 Feb 2020 16:17:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=toxicpanda-com.20150623.gappssmtp.com header.i=@toxicpanda-com.20150623.gappssmtp.com header.b="j9UNLAwB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730515AbgBMQRz (ORCPT ); Thu, 13 Feb 2020 11:17:55 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:37637 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728021AbgBMQRy (ORCPT ); Thu, 13 Feb 2020 11:17:54 -0500 Received: by mail-qv1-f68.google.com with SMTP id m5so2864655qvv.4 for ; Thu, 13 Feb 2020 08:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=szNWZ8nZIP9VqzjWfo1padC4dW5ZLKPqhH+3QbR9kl8=; b=j9UNLAwB8efOOKnRVo8/347tTQ6Emo0KZLDuFkI/NfeB6/r7/kfh0s56f8K2fjDd2P G0vDCCSUm8BYT/j+eXFHCbnElD1URx1QXqbdAPU1ahKgjFwZuQPFuu28qpAtFsnAnA6B zF+Cp1O+FpbWDUMyU4kyY3p3gFKaIAwFEoHtqmEY0QQ6oIApksC9RtvejC3zvq6aLBuM RQvdPtyj1dptfIt91qUGWHLJrGgYq8UkhmdRL8epPcYf0vieBEDSK5Erm3Y62ZxU9wfj l7VsEAjb8b+sVW85cYmdPWA2z5pMfSqZFGbYRTlDsPv90ghNgie1UJkK+05DqLFx4QWo RvRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=szNWZ8nZIP9VqzjWfo1padC4dW5ZLKPqhH+3QbR9kl8=; b=IZZQTGvPPhfLLlUmdHH1FpKWlTFKX17Pt0Et9xiDJDsiiudJ9JQAGmRCbegMIUQi/8 QXEbC9Lz+IBqx9deSboHM/HdjEmHK4DCf1UN3ZdLpO6LgFoOsDffuk+n3X41PaVd8BtZ h7iQWwgmCJ08n/+LdRwcuxeRsmcT9AaemrwHKc+KecOnRQC0fFUJZoQOb5RckX/iOE8/ TeQYiSZGsR+XD1ds+wFHlveOAuDj8QEDZxFOepEA2OMtfyp64TuxRNT7DeIabIE7XSpO nZymViGlGOzvB8wTjMtfhQ5WTkOsEOxjAilKzH1Gd1QSoFltP98q9K92Y68N+UouWM90 BIwQ== X-Gm-Message-State: APjAAAX/9DhxAsTTClULLVr2coDfefrCsldodUc7OJUbotyHtWY3XTwN D7oKEnirGJOCxjGr3SIWkbeLgA== X-Google-Smtp-Source: APXvYqyhZ4YRD5YkR/framUUFq+P/Onh5045Ye4U5HO1QXpXQ4v+dlntPSiOqGYjMh0mf9shH9NbfA== X-Received: by 2002:a05:6214:4f0:: with SMTP id cl16mr12342474qvb.213.1581610673364; Thu, 13 Feb 2020 08:17:53 -0800 (PST) Received: from ?IPv6:2620:10d:c0a8:1102:ce0:3629:8daa:1271? ([2620:10d:c091:480::edcc]) by smtp.gmail.com with ESMTPSA id b12sm1566485qkl.0.2020.02.13.08.17.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2020 08:17:52 -0800 (PST) Subject: Re: [PATCH v2 05/21] btrfs: introduce alloc_chunk_ctl To: Naohiro Aota , linux-btrfs@vger.kernel.org, David Sterba Cc: Chris Mason , Nikolay Borisov , Damien Le Moal , Johannes Thumshirn , Hannes Reinecke , Anand Jain , linux-fsdevel@vger.kernel.org References: <20200212072048.629856-1-naohiro.aota@wdc.com> <20200212072048.629856-6-naohiro.aota@wdc.com> From: Josef Bacik Message-ID: <64b1ceac-b254-ce1e-6d6e-f75fc4929e12@toxicpanda.com> Date: Thu, 13 Feb 2020 11:17:51 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200212072048.629856-6-naohiro.aota@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 2/12/20 2:20 AM, Naohiro Aota wrote: > Introduce "struct alloc_chunk_ctl" to wrap needed parameters for the chunk > allocation. This will be used to split __btrfs_alloc_chunk() into smaller > functions. > > This commit folds a number of local variables in __btrfs_alloc_chunk() into > one "struct alloc_chunk_ctl ctl". There is no functional change. > > Signed-off-by: Naohiro Aota Reviewed-by: Josef Bacik Thanks, Josef