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,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 B96CEC352A3 for ; Thu, 13 Feb 2020 19:58:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82AA620659 for ; Thu, 13 Feb 2020 19:58:41 +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="tSzqhQDt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387394AbgBMT6k (ORCPT ); Thu, 13 Feb 2020 14:58:40 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37519 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbgBMT6k (ORCPT ); Thu, 13 Feb 2020 14:58:40 -0500 Received: by mail-pl1-f194.google.com with SMTP id c23so2763989plz.4 for ; Thu, 13 Feb 2020 11:58:40 -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=pVH+873kZpbEbaIccLjTSfs6ZyWqtMj5dnMBUQ051i8=; b=tSzqhQDt/v6xIszlkxG3bNJLt6zB1TSAyDXMiI5wUoOWrpbCGb5492yRGK3OldzLx4 PxbjkhmrM/Tx2/3f6iywoIKrZJT0BSvqQ5oDxgAr1DjUNDZauLHjovYI4ZZeKXY19Hku u3ytEX7t+Wn54usAJXy9YX4W5JLZzcTifDXW91q75wHmhIDiz9QRHmGChw44AzRCHZ48 uo3LFOQmQLt4JNVK87aMFnYO1YV8P4v1wq3cjvRXro794c1Rzic1Lm7Wnh2YX3Hem+Nn tlL0JDjmhMUwEgLa4l5OkEkEu5eyMzzlhGRJvpyXL1LhVLxKmG3D0EmL+t7ByMPkMZK4 r65g== 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=pVH+873kZpbEbaIccLjTSfs6ZyWqtMj5dnMBUQ051i8=; b=I29krVL0cqJgDvpisJuPQFHtfBDnNYzyaEed9idbVuIWbxgiT8v4uCKf2Nbk5KmAF4 zrXSNvcLLrvLkUblTDkryitcl6zVugylllJDXQzR1NJnUp5TOX2Ici81vdyyj3VXBMsw L84lr7b/69qLBCn/u50/23vPgmmQtloREMfVHaYRIH86aVmnAxR04v0zItP70SNi7sVa 39H1akUMTbqAfTRfmbBcRux2lUU0jvEB61w4oVqfty5nD64VkFNE91nohXvlq1Sm5WIY lxB2j/BYrgCfmhZx/y0a2qoUCAOvHdOOHAPAB3CQwLbXd6T+1MNjYyVh0hOVvO7LKjmj O9eA== X-Gm-Message-State: APjAAAXFzvoy7fwv8Sz4J5kGlLcQs3Xa5t39Jkk4lAoJwQfTiX41t1QR 5pAtqhg+CddGOSolgQc53aeeYQ== X-Google-Smtp-Source: APXvYqwUWTSiEXDjlLszbLwkr0Dr2caV+vrSZP8wXEWkrtATFjzElTuiKAOBHqvAuthuv2DOg9eeIw== X-Received: by 2002:a17:90a:cc02:: with SMTP id b2mr6672130pju.137.1581623919971; Thu, 13 Feb 2020 11:58:39 -0800 (PST) Received: from ?IPv6:2620:10d:c085:21cf::1150? ([2620:10d:c090:400::5:249c]) by smtp.gmail.com with ESMTPSA id q187sm4028157pfq.185.2020.02.13.11.58.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2020 11:58:39 -0800 (PST) Subject: Re: [PATCH v2 17/21] btrfs: factor out found_extent() 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-18-naohiro.aota@wdc.com> From: Josef Bacik Message-ID: Date: Thu, 13 Feb 2020 14:58:36 -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-18-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: > Factor out found_extent() from find_free_extent_update_loop(). This > function is called when a proper extent is found and before returning from > find_free_extent(). Hook functions like found_extent_clustered() should > save information for a next allocation. > > Signed-off-by: Naohiro Aota Reviewed-by: Josef Bacik Thanks, Josef