]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: update documentation for a block group's bg_list member
authorFilipe Manana <fdmanana@suse.com>
Tue, 6 Jun 2023 14:26:03 +0000 (15:26 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:38 +0000 (13:59 +0200)
commitaadb164bdd5cd7e6c139f2fd5c696ee470cd95d4
tree518d6b71931a414565361335147fd4c995da5f11
parent7e27180994383b7c741ad87749db01e4989a02ba
btrfs: update documentation for a block group's bg_list member

Currently we are only documenting two uses of the bg_list member of a
block group, but there two more:

1) To track deleted block groups for discard purposes, introduced in
   commit e33e17ee1098 ("btrfs: add missing discards when unpinning
   extents with -o discard");

2) To track block groups for automatic reclaim, introduced more recently
   by commit 18bb8bbf13c1 ("btrfs: zoned: automatically reclaim zones")

So document those two other use cases.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.h