Thread (59 messages) 59 messages, 7 authors, 2022-04-30

Re: [PATCH v2 04/12] md/raid5: Move common stripe count increment code into __find_stripe()

From: Christoph Hellwig <hch@infradead.org>
Date: 2022-04-21 06:10:30
Also in: lkml

On Wed, Apr 20, 2022 at 01:54:17PM -0600, Logan Gunthorpe wrote:
Both uses of find_stripe() require a fairly complicated dance to
increment the reference count. Move this into a common find_get_stripe()
helper.

No functional changes intended.
The subject is wrong now.
quoted hunk ↗ jump to hunk
 static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector,
-					 short generation)
+					 short generation, int hash)
 {
 	struct stripe_head *sh;
 
@@ -624,6 +624,49 @@ static struct stripe_head *__find_stripe(struct r5conf *conf, sector_t sector,
 	return NULL;
 }
And the new hash argument here is not needed.

Otherwise looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help