md: replace seq_release_private with seq_release
authorCihangir Akturk <cakturk@gmail.com>
Sat, 29 Jul 2017 16:52:45 +0000 (19:52 +0300)
committerShaohua Li <shli@fb.com>
Fri, 25 Aug 2017 17:21:45 +0000 (10:21 -0700)
Since commit f15146380d28 ("fs: seq_file - add event counter to simplify
poll() support"), md.c code has been no longer used the private field of
the struct seq_file, but seq_release_private() has been continued to be
used to release the allocated seq_file. This seems to have been
forgotten. So convert it to use seq_release() instead of
seq_release_private().

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c

index 95c0b64..a74dc99 100644 (file)
@@ -7838,7 +7838,7 @@ static const struct file_operations md_seq_fops = {
        .open           = md_seq_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release_private,
+       .release        = seq_release,
        .poll           = mdstat_poll,
 };