Re: [PATCH 1/4] block: split wbt_init() into two parts

From
Bart Van Assche <bvanassche@acm.org>
Date
2021-06-04 00:32:26
Reply to
Ming Lei, 2021-05-25
On 5/25/21 1:04 AM, Ming Lei wrote:
quoted hunk ↗ jump to hunk
+int wbt_init(struct request_queue *q)
+{
+	int ret = wbt_alloc(q);
+	struct rq_wb *rwb;
+
+	if (ret)
+		return ret;
A coding style nit: please move the 'ret = wbt_alloc(q)' assignment to a
line of its own since wbt_alloc() allocates memory. Otherwise this patch
looks good to me.

Thanks,

Bart.
Thread (9 messages) 9 messages, 2 authors, last reply 2021-06-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help