btrfs: update stale comment for count_range_bits()
authorFilipe Manana <fdmanana@suse.com>
Fri, 11 Nov 2022 11:50:33 +0000 (11:50 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:56 +0000 (18:00 +0100)
commit1ee51a06255d425c1b7effff095f0bf9c7240078
tree87dbbf4cb6d9bd740308c3bec98b2ba11babfc14
parent8c6e53a79d16b3651ad3abeb415e1c637da75082
btrfs: update stale comment for count_range_bits()

The comment for count_range_bits() mentions that the search is fast if we
are asking for a range with the EXTENT_DIRTY bit set. However that is no
longer true since we don't use that bit and the optimization for that was
removed in:

  commit 71528e9e16c7 ("btrfs: get rid of extent_io_tree::dirty_bytes")

So remove that part of the comment mentioning the no longer existing
optimized case, and, while at it, add proper documentation describing the
purpose, arguments and return value of the function.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c