]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: print unusable percentage when reclaiming block groups
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 28 Jun 2021 18:16:46 +0000 (03:16 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Jul 2021 15:42:37 +0000 (17:42 +0200)
commit5f93e776c6734cea989aeb4f2d6c97e521baa683
treea06c2b284e5c8dfe52a07b1d24bc26cab93dc153
parent54afaae34ee49e98c1c902b444b42832551d090c
btrfs: zoned: print unusable percentage when reclaiming block groups

When we're automatically reclaiming a zone, because its zone_unusable
value is above the reclaim threshold, we're only logging how much
percent of the zone's capacity are used, but not how much of the
capacity is unusable.

Also print the percentage of the unusable space in the block group
before we're reclaiming it.

Example:

  BTRFS info (device sdg): reclaiming chunk 230686720 with 13% used 86% unusable

CC: stable@vger.kernel.org # 5.13
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c