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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3985CC433F5 for ; Wed, 27 Oct 2021 20:14:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A88560EC0 for ; Wed, 27 Oct 2021 20:14:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239039AbhJ0URW (ORCPT ); Wed, 27 Oct 2021 16:17:22 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:58894 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238966AbhJ0URV (ORCPT ); Wed, 27 Oct 2021 16:17:21 -0400 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19RK0WV2018900 for ; Wed, 27 Oct 2021 13:14:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=facebook; bh=d2X+khynLZ2x8yejypp51eZ+hdQO1jPIRHyk45xIQ6o=; b=faY3hOESny0b08vKEo3WG34s35bheSr7NQdEOSpd3K9AqxhfB2g69cLxRVp8eiOC3Wf0 KAukQQ6a1oeTyXe8wh/u7N8BclX16/87NljA7VIINV4SQ6CfBlZxwBEUA+i1TWAie14w O177Ph40gre4B29ONp3n83BCRm7jzB2wDzQ= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 3by64s5msr-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 27 Oct 2021 13:14:55 -0700 Received: from intmgw001.38.frc1.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Wed, 27 Oct 2021 13:14:54 -0700 Received: by devvm225.atn0.facebook.com (Postfix, from userid 425415) id 295275A487CD; Wed, 27 Oct 2021 13:14:44 -0700 (PDT) From: Stefan Roesch To: , CC: Subject: [PATCH v2 4/4] btrfs: increase metadata alloc size to 5GB for volumes > 50GB Date: Wed, 27 Oct 2021 13:14:41 -0700 Message-ID: <20211027201441.3813178-5-shr@fb.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211027201441.3813178-1-shr@fb.com> References: <20211027201441.3813178-1-shr@fb.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-FB-Source: Intern X-Proofpoint-ORIG-GUID: kxfoHO7i_5PCbTiNaqogHcLK5uXbThxG X-Proofpoint-GUID: kxfoHO7i_5PCbTiNaqogHcLK5uXbThxG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-27_06,2021-10-26_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 priorityscore=1501 impostorscore=0 phishscore=0 mlxlogscore=976 mlxscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 suspectscore=0 clxscore=1015 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2110270115 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This increases the metadata default allocation size from 1GB to 5GB for volumes with a size greater than 50GB. Signed-off-by: Stefan Roesch --- fs/btrfs/space-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index 570acfebeae4..1314b0924512 100644 --- a/fs/btrfs/space-info.c +++ b/fs/btrfs/space-info.c @@ -195,7 +195,7 @@ static u64 compute_stripe_size_regular(struct btrfs_f= s_info *info, u64 flags) =20 /* Handle BTRFS_BLOCK_GROUP_METADATA */ if (info->fs_devices->total_rw_bytes > 50ULL * SZ_1G) - return SZ_1G; + return 5ULL * SZ_1G; =20 return SZ_256M; } --=20 2.30.2