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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12D54C41535 for ; Tue, 10 May 2022 13:48:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241454AbiEJNwi (ORCPT ); Tue, 10 May 2022 09:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343557AbiEJNsN (ORCPT ); Tue, 10 May 2022 09:48:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B6CF2B09C2; Tue, 10 May 2022 06:36:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6EC52B81DAF; Tue, 10 May 2022 13:36:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4E9CC385C2; Tue, 10 May 2022 13:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189787; bh=ztsU5dmS7toICJwPpwBvhqBZNz9WAcj48WoOreS6KZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QUUL8Uf6ttUy6gaySFWo1qgWnHU0FEJ/5yXsGk6MiFIdstvGuzA3tLBhaOqZU76zC 8qp31xNCgOnhAMDo1SUN5O3WlPCkkXymnHL2VgQt0OHls4lyiALFBD1jjoS7vOLbdH 0CirNWZAqw2p3h0kxPOpUztiyH3vfHyimWdvOndk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Sterba Subject: [PATCH 5.17 028/140] btrfs: sysfs: export the balance paused state of exclusive operation Date: Tue, 10 May 2022 15:06:58 +0200 Message-Id: <20220510130742.417556860@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130741.600270947@linuxfoundation.org> References: <20220510130741.600270947@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: David Sterba commit 3e1ad196385c65c1454aceab1226d9a4baca27d5 upstream. The new state allowing device addition with paused balance is not exported to user space so it can't recognize it and actually start the operation. Fixes: efc0e69c2fea ("btrfs: introduce exclusive operation BALANCE_PAUSED state") CC: stable@vger.kernel.org # 5.17 Signed-off-by: David Sterba Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/sysfs.c | 3 +++ 1 file changed, 3 insertions(+) --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -919,6 +919,9 @@ static ssize_t btrfs_exclusive_operation case BTRFS_EXCLOP_BALANCE: str = "balance\n"; break; + case BTRFS_EXCLOP_BALANCE_PAUSED: + str = "balance paused\n"; + break; case BTRFS_EXCLOP_DEV_ADD: str = "device add\n"; break;