]> 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)
commit3418e7ee415d8651f94cdf1bb7aa245b9fc50b13
treea06c2b284e5c8dfe52a07b1d24bc26cab93dc153
parentfe61093973efcb23d7d7e18ba1ad26b7b9631e86
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