]> 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)
commit5ec5265478bc51f51eb2540511c4a9f12a8b0e27
treea06c2b284e5c8dfe52a07b1d24bc26cab93dc153
parent0615e61dbbefd94f9d8a774bdd444500ee3d0956
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