From patchwork Mon Dec 16 18:13:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13910206 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 346F3206F19 for ; Mon, 16 Dec 2024 18:14:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734372890; cv=fail; b=Whk0PObMr3aW5r0R+sy/WNXXsl1mclo6YcyNxBkS2SAq9MeD0e76sQZeq1JRfsnMD66HfClVxken69TNKX08DknldCt2XyzvjRv3Hkm512WswoNE0Ds0sjnB/u8nzeunCbm7k8gRAFos9tmc5O9APZft007BqfCkcEDXA+VxgEs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734372890; c=relaxed/simple; bh=ldOPgLr/5Xo7nwhjGDIOQ0EvvsrL+y59D337Phc+ECs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=mAHkfJaSs/RT69Hwh+JwkVyVUKmVK0cu1zouoCUads8s8d0rPcGc8w9wVeGQCFdyiVbdNuXyeZPXsF/hdA+xKggfD+UoXrkTeM9QBGVxssHRqB9MXyvIewfweViRSQrpwqWcWY+/fHYHnGYPb10QgXK8SXz9GCNYV1qLfSI7wYU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=gmXYOBFj; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=ciQ+ZsfU; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="gmXYOBFj"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="ciQ+ZsfU" Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BGHQk3l015221; Mon, 16 Dec 2024 18:14:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=6jFA3VJpjbDfj5Y+/+R8Z2f9p8a+t0min/dwJhv4/UM=; b= gmXYOBFj5A7caktphlEfmW2smTfsXWSpGYRwH94l45yiCsDMoTYS7tUdik+wJovb RDBLrPP9Bt35FMf7bE4JSoajCHodCnNBDdsMX8bpxPTnfuNxGVHwi69xaS+qFpYA vEJ+c+CMb/ylIPlnUhIuxCmO9nqoriQJTvwDs6DlkMos+gVvEHA8V/gD4oRNWuK5 VD1cBxVpPATvw/e6UG/n6uirnOdD6uFo1JgCnufgXo4BpyuPEuUjdjHnaOs3VvEC KBF/PaXkGIWzub3fk0GZXG9deLzBY7NtIsxSi58/538EyQxFxSBQP/8gVVUGsU0h b8Kpxv38sawq8gDfPb+DMQ== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43h1w9bxda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Dec 2024 18:14:39 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4BGHBQKd006433; Mon, 16 Dec 2024 18:14:39 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2170.outbound.protection.outlook.com [104.47.59.170]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 43h0f8bwjx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Dec 2024 18:14:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bZ6dzQIxCysFs4JQhyjLPjzkKoGQdrXwUHjfE95IxgJ5XQRl5Xd/yfN636PooWldjfCiXOjKAiIWEXCmhAuCbH6meOhctVr1EynMtxCylljO53zMaxiKzo73OBJLncoj5y1po7oHAEM24meqCs0mhS3FbiBp1MZHOSzXC6V1FdVqSaBK7aPzJvJ7hIzPKgF14DW6o70h5/GOy9tUyYvbOMzkXp2RJQrAMHccs0IVkXN6S7th2tmlWpynuOLpqXrW9MY9ZDws7UFh20UwntvaZu2RCbDhLUBtL7ALG3nIolZdrtIX64k2CmCzUxdGPct3DKvaX/ILE/mRxO9KvHga8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6jFA3VJpjbDfj5Y+/+R8Z2f9p8a+t0min/dwJhv4/UM=; b=sDj/YQE4ymuqGV9hmJ5lTWBkoS5ZdqSJ8ibGe2JYqWALR0LaGHMju7VOP9zSTFw7TEbIcEbGMKsrUsm68caTzOQvxLUpEuHbRZkRNV1EKuZVskiIEkeCN2oKY4oCkm2ODXYC9MqPs44kku8yszRxPvSBW5U1ToR6QpP9CnPc84o+mqC2KuxLNY3xHCnGKmvuFtRP9vrtZkSlyJOhwkGI9czB8mF8tIXelSsi8RX3MqBIWhnYOkhh/qmep35Z73OdjS/JAEeaWhDAjL1znyENS0xdHLyMS2m5yvbEyxbyOjHYsuy44f5wiMNYqphy8ClOMWPulZQBhGp1fEmQVV5+Gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6jFA3VJpjbDfj5Y+/+R8Z2f9p8a+t0min/dwJhv4/UM=; b=ciQ+ZsfUaZbm2Q2xMjnJ6k+CrvEtl4bqnYYhX9F+7s83LXJNmPZSLhudWyOX5Wn3kQdYgLJglMMpgn+C50QzNsd0mmGD1I+N8ZhdsfTz/yE4zelZKzJa+IcysYFj2zlmidw1idF+I1XbnwVfOEs6BrsqptEum2CPO5ptry8Z0nc= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by DM4PR10MB8220.namprd10.prod.outlook.com (2603:10b6:8:1cc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.20; Mon, 16 Dec 2024 18:14:37 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::fea:df00:2d94:cb65]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::fea:df00:2d94:cb65%2]) with mapi id 15.20.8251.015; Mon, 16 Dec 2024 18:14:37 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Cc: dsterba@suse.com, wqu@suse.com, hrx@bupt.moe, waxhead@dirtcellar.net Subject: [PATCH v4 9/9] btrfs: modload to print RAID1 balancing status Date: Tue, 17 Dec 2024 02:13:17 +0800 Message-ID: X-Mailer: git-send-email 2.47.0 In-Reply-To: References: X-ClientProxiedBy: MA0PR01CA0074.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:ad::7) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|DM4PR10MB8220:EE_ X-MS-Office365-Filtering-Correlation-Id: 92426d84-851a-4600-7f3b-08dd1dfd8015 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: VMZ+d7uBoROn6VTQ/87yH3E2VVcBUcG237MF4n1QaV6MZfCgllLKvOUXSPrZzGwr1v0cl70H1HgShhvQ+fWIGRxn0ec6sGc7rshjDk5y9u8t77tLFKA7PZTK7sNQQkBxQGDqz6QquwKr0/LJwijD8HXwEN5oR+/3wInU7dFHOU1HIgEGfc8sfk1SR0wfQiFqH9JMskErudnx2OcKsmdkTxWTdg63LnvN6f3Mrsaf7mVfe+wzY1/VwRZ+u4TvNrPHMnPVj6doimit92cPd5oDoJ0aprHaj8WP/inuafIfaQV8Z8mAqqQCVPeK1ZAbYT75/Wwb0byRVSl9QjMCjyaV3+StplwA8sHfD7tAo4BkZoXgeAr9vsC03UtsIJJC8L2nesfTd69HwvS38VsKeVJQHPmUk/l0d+wdm/38H/WRqAH9IkktiSVQ20oRsozWmqC0RjUTAp5c6MzDl5wTqeskUXP+yXOKfL4L7y8a9xYmajIVxnbzmq3G/pnOyIs/fNlZwC5FK/9jA4bH0Al4AEWq1smKI/tifLM20ssK9wXPLyCljHGFI/Ro1BiDrrxJ35ULmY+qNxLUb4St4EmhQD69m+28dPfCKCfaIEEg0NPfhLAskswP4T3RS77URlW8TnmdvzfOh8621BTK+ETrc0t+Xd4AZYqkZfJOGFDy0BRrBilUVcs0m+9R/ZE58wHBw6caoHHjsXVF0KjwEMDYHyx/JJxzFsMDTn4kvy5ZshkRo5tQbuetLLt0eUmIihiajLxBCrinQazEEi+HIPs3zLTjLEropsWV8Su4wWhecFibUNGVM0srxVcKhbbOkMlSQB2FUTsP8HeJ7VktoaN53yhoTnLSyNq424uO/V+ptGbr51LI/XfpelLUuKfRJVco3nOql4dqge8EWr+f1J1q5bOeLJ5a8YPhlCFKbaAv936idf4puHBp1mb3V5tYMrp5jWev17adzRI3L6liJHopExqfte/36Whfvlm4PdQPWJB2WZH8oY5NoKRy0vMhLWEMKkwuKEmunnam5vw7Cj92s/87Twt7BB1QrMlDsZoo7aKTSnjneuCVEUIJgyW9U5CexGM9UzlKE0DAVUMEIgqLQpLecJp15tOYXP/fbOQMR1PZ6VoFpQTdX64RABe2roVEGSsZa2fN2wCUObQH0py6YaX+i4cIdwASeNP0uspT7YqC/vwxzXUdWqCEncSQBBpuSgLl/la64yktb3T79qan2WkX3MlX/nztJsnnCGLRWj2L2Nd1++Arxb1EZkCYKVMmE4ETyuY43abkRgjbCDlew24b8iQlivSZzlxBdWAGw9rTL0H0wos7vpe+mVcpvONhzc8kt1AA4Y/rqQKnugZ9XoU/CyWmNsaJqnoqj0ZLQj8enj8Jr9IQ/H+9SzGrv51UBgx0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pDDXra99aOlv9AJ2lNs1/JSjlb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M0cBOOxpfwA7Kl6NbgdZZBuJLAnFjSKiFH/ebvXWZ6VNAOodsT0hY4Ar5iW+FkTcU2bHfgObbhJJ1X+ydKhVno1x6a7LYlBzKChlrzwWn8AFxfNoY/uARhqU9X5wuw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92426d84-851a-4600-7f3b-08dd1dfd8015 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2024 18:14:37.0381 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oVI0nfx8ESTGpzRtzKafBUrm2lJ1KWgZczMsRWNvVZ6aI9n/ZqVDri4fx72PzyHVdBvtWTF2AsOyK+bzVSSu9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB8220 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-16_08,2024-12-16_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2412160152 X-Proofpoint-GUID: _HjeNDIJUhBfe3elEcWlryI8PSY7P9J0 X-Proofpoint-ORIG-GUID: _HjeNDIJUhBfe3elEcWlryI8PSY7P9J0 Modified the Btrfs loading message to include the RAID1 balancing status if the experimental feature is enabled. Signed-off-by: Anand Jain --- fs/btrfs/super.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 58190989a29d..573e8e1a2b24 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2480,7 +2480,17 @@ static int __init btrfs_print_mod_info(void) ", fsverity=no" #endif ; - pr_info("Btrfs loaded%s\n", options); + +#ifdef CONFIG_BTRFS_EXPERIMENTAL + if (btrfs_get_raid1_balancing() == NULL) + pr_info("Btrfs loaded%s\n", options); + else + pr_info("Btrfs loaded%s, raid1_balancing=%s\n", + options, btrfs_get_raid1_balancing()); +#else + pr_info("Btrfs loaded%s\n", options); +#endif + return 0; }