提交 bf97d287 编写于 作者: S Steve French

[CIFS] CIFS support for /proc/<pid>/mountstats part 1

Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 a3ab41f1
...@@ -437,6 +437,14 @@ static void cifs_umount_begin(struct vfsmount * vfsmnt, int flags) ...@@ -437,6 +437,14 @@ static void cifs_umount_begin(struct vfsmount * vfsmnt, int flags)
return; return;
} }
#ifdef CONFIG_CIFS_STATS2
static int cifs_show_stats(struct seq_file *s, struct vfsmount *mnt)
{
/* BB FIXME */
return 0;
}
#endif
static int cifs_remount(struct super_block *sb, int *flags, char *data) static int cifs_remount(struct super_block *sb, int *flags, char *data)
{ {
*flags |= MS_NODIRATIME; *flags |= MS_NODIRATIME;
...@@ -456,6 +464,9 @@ static struct super_operations cifs_super_ops = { ...@@ -456,6 +464,9 @@ static struct super_operations cifs_super_ops = {
.show_options = cifs_show_options, .show_options = cifs_show_options,
.umount_begin = cifs_umount_begin, .umount_begin = cifs_umount_begin,
.remount_fs = cifs_remount, .remount_fs = cifs_remount,
#ifdef CONFIG_CIFS_STATS2
cifs_show_stats,
#endif
}; };
static int static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册