Jan Glauber 7abfabaf5f md: Fix missing unused status line of /proc/mdstat
Reading /proc/mdstat with a read buffer size that would not
fit the unused status line in the first read will skip this
line from the output.

So 'dd if=/proc/mdstat bs=64 2>/dev/null' will not print something
like: unused devices: <none>

Don't return NULL immediately in start() for v=2 but call
show() once to print the status line also for multiple reads.

Cc: stable@vger.kernel.org
Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code and interface")
Signed-off-by: Jan Glauber <jglauber@digitalocean.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
2021-03-24 16:29:07 -07:00
..
2021-02-26 15:49:51 -07:00
2021-02-26 15:49:51 -07:00
2020-07-08 17:20:46 -06:00
2020-08-03 11:57:03 -07:00
2021-02-03 10:13:00 -05:00
2020-12-16 13:09:32 -08:00
2021-01-27 09:51:48 -07:00
2019-03-12 10:15:18 -07:00
2021-02-21 11:06:54 -08:00