Skip to contentSkip to conversation

procfs: update proc_show_options() to new API

PATCH New Dan Carpenter 1 participant 1 message Jan 4, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 procfs: update proc_show_options() to new API

This needs to be updated to take a dentry pointer after 79744e695a "vfs:
switch ->show_options() to struct dentry *"

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)