Skip to contentSkip to conversation

proc: Update for change of ->show_options() to struct dentry *

PATCH New Mark Brown 1 participant 1 message Dec 28, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 proc: Update for change of ->show_options() to struct dentry *

The change "vfs: switch ->show_options() to struct dentry *" in -next updated the filesystems to use a struct dentry * as the second paremeter for show_options() but procfs wasn't converted. Do the conversion.

---
 fs/proc/inode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/proc/inode.c +2 -2
index e80cb5a..d839bfd 100644
@@ -106,9 +106,9 @@ void __init proc_init_inodecache(void)
 					     init_once);
 }
 
-static int proc_show_options(struct seq_file *seq, struct vfsmount *vfs)
+static int proc_show_options(struct seq_file *seq, struct dentry *root)
 {
-	struct super_block *sb = vfs->mnt_sb;
+	struct super_block *sb = root->d_sb;
 	struct pid_namespace *pid = sb->s_fs_info;
 
 	if (pid->pid_gid)
Signature · 1 line
1.7.7.3