Skip to contentSkip to conversation

md: replace seq_release_private with seq_release

PATCH Applied Cihangir Akturk 2 participants 2 messages Jul 29, 2017 – Jul 31, 2017 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md: replace seq_release_private with seq_release

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().

---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
index 8cdca029..6174360 100644
@@ -7836,7 +7836,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,
 };
 
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 8 lines · Cihangir Akturk

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().

applied, thanks!

Quoted 20 lines
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
index 8cdca029..6174360 100644
@@ -7836,7 +7836,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,
 };
 
Signature · 1 line
2.7.4