Thread (6 messages) 6 messages, 3 authors, 2023-09-25

Re: [PATCH -next] md: simplify md_seq_ops

From: Mariusz Tkaczyk <hidden>
Date: 2023-09-13 10:32:38
Also in: lkml

On Tue, 12 Sep 2023 09:02:19 +0800
Yu Kuai [off-list ref] wrote:
quoted
quoted
+static void *md_seq_next(struct seq_file *seq, void *v, loff_t *pos)
+{
+	return seq_list_next(v, &all_mddevs, pos);
+}  
Can it be so simple? Why previous versions takes care of holding "(void)*1"
and "(void)*2" then? Could you elaborate?  
"1" means printing "Personalities", which is now moved to md_seq_start,
and "2" means printing "unsed devices" which is now moved to
md_seq_stop. And now md_seq_next is only used to iterate the mddev list.
Ok, LGTM.

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