btrfs: sysfs: export the balance paused state of exclusive operation
authorDavid Sterba <dsterba@suse.com>
Tue, 3 May 2022 15:35:25 +0000 (17:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:32:20 +0000 (12:32 +0200)
commit1300e212d3adaf2dc83a672a2e0dd568f8a0a458
tree12205e1904f8b7b6f919dc8be59d0eaaea6095e8
parentec9d1e66ac7a7091497a724720de4b36e485d88e
btrfs: sysfs: export the balance paused state of exclusive operation

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 <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/sysfs.c