Thread (33 messages) 33 messages, 5 authors, 2020-11-19

Re: [PATCH V4 05/12] sbitmap: export sbitmap_weight

From: John Garry <hidden>
Date: 2020-11-17 09:19:25
Also in: linux-scsi

On 16/11/2020 09:07, Ming Lei wrote:
+
+/**
+ * sbitmap_weight() - Return how many real bits set in a &struct sbitmap.
+ * @sb: Bitmap to check.
+ *
+ * Return: How many real bits set
+ */
+unsigned int sbitmap_weight(const struct sbitmap *sb);
+
Hi Ming,

Just a nit on the comment - I think that "real bits set" is vague. How 
about "set and not cleared bits", "busy bits", "net set bits" or 
"aggregate bits set"?

Thanks,
John
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help