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=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 0F15CC3B189 for ; Thu, 13 Feb 2020 16:28:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB3AF217F4 for ; Thu, 13 Feb 2020 16:28:03 +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="PyekYUld" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbgBMQ2D (ORCPT ); Thu, 13 Feb 2020 11:28:03 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34945 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727753AbgBMQ2C (ORCPT ); Thu, 13 Feb 2020 11:28:02 -0500 Received: by mail-qk1-f193.google.com with SMTP id v2so6259093qkj.2 for ; Thu, 13 Feb 2020 08:28:01 -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=rzSjLwScU3C0NfLuecC9tfePijAPGMVcmjqq68FTKTg=; b=PyekYUld5wcs4QcXnfetLPQNI7ojLkz5bmlbEHoQpAfGDE0BrIqnbBNyexN9So6zjJ T3wGW7piRcT3qbNcov2Ebygh1GYsEWpBlNsIrRxIBtrV/dYBLkV6x0P2v1axfrwaPmAK m2/D3xFFJcmBSQMKL8cqX4Wa/R8ZHWZWmxQDgJzxBpkT9R2imb/pd7PNj6nW0tIMf+Ld YeSPSQaYhbzDDUNOIzh0hG0429Y9N+OoqToBdXTXKFCLIFg5liTgdwlBDEGek0ubTQR/ ldyRvLLCd43OyYWgxPEKaPE+AmrH5Nys+i8co8ojKTV0h2pLC1qqbOiRxxzw8aoIdheZ 9xSQ== 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=rzSjLwScU3C0NfLuecC9tfePijAPGMVcmjqq68FTKTg=; b=WLfdfucdz+EW/D4IP/k0zBWkEji0huZelaf8x3SGLCgSaLIBNPNVxqrmzBlGYHrYgu U47aURiW/VVvlvmV8cLCPn/7nAeoCumk3DGb0zusiB0Ed1slDzqNpjjuNglcyKpv4lUj W37zbAZ0r1I115gg4Xl0vlJfW6O0WMkDGkF2bWaON0ItCkYbbMviCFra5mysZd+oan8U Mf1yu/FDUz4QRKQI3AXsas3jv5U+UXF+LJVEu2sAjVeSXa8fhgMG7iy6rcHBcTZpQUQp h+276dVB52BX2J3qme7rcrwY8F7Xtoe3S1tc2H9Hcd3DmLqoawNAdnXnShM2WdfAwAm/ iOJw== X-Gm-Message-State: APjAAAX5sTpJguM2dpzVbMEKV6Z8uXRqIagflvjhROMA3grCA1kXbAJx YVdyoc9+j1AmI7pSAseKHg8V2HIh/pU= X-Google-Smtp-Source: APXvYqysNcRyJQkCepzB17Bhn4T8+paNKZwum3UsR+NEbj367KSpL7oU2QpNJwlkOx41cp3zwNL3Gg== X-Received: by 2002:a37:7bc7:: with SMTP id w190mr16314505qkc.193.1581611280826; Thu, 13 Feb 2020 08:28:00 -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 c25sm1557670qkc.12.2020.02.13.08.27.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Feb 2020 08:27:59 -0800 (PST) Subject: Re: [PATCH v2 10/21] btrfs: parameterize dev_extent_min 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-11-naohiro.aota@wdc.com> From: Josef Bacik Message-ID: Date: Thu, 13 Feb 2020 11:27:58 -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-11-naohiro.aota@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 2/12/20 2:20 AM, Naohiro Aota wrote: > Currently, we ignore a device whose available space is less than > "BTRFS_STRIPE_LEN * dev_stripes". This is a lower limit for current > allocation policy (to maximize the number of stripes). This commit > parameterizes dev_extent_min, so that other policies can set their own > lower limitation to ignore a device with an insufficient space. > > Signed-off-by: Naohiro Aota Reviewed-by: Josef Bacik Thanks, Josef