Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
64132379
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
64132379
编写于
12月 08, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
vfs: switch ->show_stats to struct dentry *
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
cdcf116d
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
17 addition
and
16 deletion
+17
-16
drivers/staging/pohmelfs/inode.c
drivers/staging/pohmelfs/inode.c
+2
-2
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+1
-1
fs/nfs/super.c
fs/nfs/super.c
+7
-7
fs/proc_namespace.c
fs/proc_namespace.c
+6
-5
include/linux/fs.h
include/linux/fs.h
+1
-1
未找到文件。
drivers/staging/pohmelfs/inode.c
浏览文件 @
64132379
...
...
@@ -1759,11 +1759,11 @@ static int pohmelfs_root_handshake(struct pohmelfs_sb *psb)
return
err
;
}
static
int
pohmelfs_show_stats
(
struct
seq_file
*
m
,
struct
vfsmount
*
mn
t
)
static
int
pohmelfs_show_stats
(
struct
seq_file
*
m
,
struct
dentry
*
roo
t
)
{
struct
netfs_state
*
st
;
struct
pohmelfs_ctl
*
ctl
;
struct
pohmelfs_sb
*
psb
=
POHMELFS_SB
(
mnt
->
mnt
_sb
);
struct
pohmelfs_sb
*
psb
=
POHMELFS_SB
(
root
->
d
_sb
);
struct
pohmelfs_config
*
c
;
mutex_lock
(
&
psb
->
state_lock
);
...
...
fs/cifs/cifsfs.c
浏览文件 @
64132379
...
...
@@ -488,7 +488,7 @@ static void cifs_umount_begin(struct super_block *sb)
}
#ifdef CONFIG_CIFS_STATS2
static
int
cifs_show_stats
(
struct
seq_file
*
s
,
struct
vfsmount
*
mn
t
)
static
int
cifs_show_stats
(
struct
seq_file
*
s
,
struct
dentry
*
roo
t
)
{
/* BB FIXME */
return
0
;
...
...
fs/nfs/super.c
浏览文件 @
64132379
...
...
@@ -265,7 +265,7 @@ static int nfs_statfs(struct dentry *, struct kstatfs *);
static
int
nfs_show_options
(
struct
seq_file
*
,
struct
vfsmount
*
);
static
int
nfs_show_devname
(
struct
seq_file
*
,
struct
vfsmount
*
);
static
int
nfs_show_path
(
struct
seq_file
*
,
struct
vfsmount
*
);
static
int
nfs_show_stats
(
struct
seq_file
*
,
struct
vfsmount
*
);
static
int
nfs_show_stats
(
struct
seq_file
*
,
struct
dentry
*
);
static
struct
dentry
*
nfs_fs_mount
(
struct
file_system_type
*
,
int
,
const
char
*
,
void
*
);
static
struct
dentry
*
nfs_xdev_mount
(
struct
file_system_type
*
fs_type
,
...
...
@@ -785,10 +785,10 @@ static int nfs_show_path(struct seq_file *m, struct vfsmount *mnt)
/*
* Present statistical information for this VFS mountpoint
*/
static
int
nfs_show_stats
(
struct
seq_file
*
m
,
struct
vfsmount
*
mn
t
)
static
int
nfs_show_stats
(
struct
seq_file
*
m
,
struct
dentry
*
roo
t
)
{
int
i
,
cpu
;
struct
nfs_server
*
nfss
=
NFS_SB
(
mnt
->
mnt
_sb
);
struct
nfs_server
*
nfss
=
NFS_SB
(
root
->
d
_sb
);
struct
rpc_auth
*
auth
=
nfss
->
client
->
cl_auth
;
struct
nfs_iostats
totals
=
{
};
...
...
@@ -798,10 +798,10 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt)
* Display all mount option settings
*/
seq_printf
(
m
,
"
\n\t
opts:
\t
"
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_RDONLY
?
"ro"
:
"rw"
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_SYNCHRONOUS
?
",sync"
:
""
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_NOATIME
?
",noatime"
:
""
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_NODIRATIME
?
",nodiratime"
:
""
);
seq_puts
(
m
,
root
->
d
_sb
->
s_flags
&
MS_RDONLY
?
"ro"
:
"rw"
);
seq_puts
(
m
,
root
->
d
_sb
->
s_flags
&
MS_SYNCHRONOUS
?
",sync"
:
""
);
seq_puts
(
m
,
root
->
d
_sb
->
s_flags
&
MS_NOATIME
?
",noatime"
:
""
);
seq_puts
(
m
,
root
->
d
_sb
->
s_flags
&
MS_NODIRATIME
?
",nodiratime"
:
""
);
nfs_show_mount_options
(
m
,
nfss
,
1
);
seq_printf
(
m
,
"
\n\t
age:
\t
%lu"
,
(
jiffies
-
nfss
->
mount_time
)
/
HZ
);
...
...
fs/proc_namespace.c
浏览文件 @
64132379
...
...
@@ -183,12 +183,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
{
struct
mount
*
r
=
real_mount
(
mnt
);
struct
path
mnt_path
=
{
.
dentry
=
mnt
->
mnt_root
,
.
mnt
=
mnt
};
struct
super_block
*
sb
=
mnt_path
.
dentry
->
d_sb
;
int
err
=
0
;
/* device */
if
(
mnt
->
mnt_
sb
->
s_op
->
show_devname
)
{
if
(
sb
->
s_op
->
show_devname
)
{
seq_puts
(
m
,
"device "
);
err
=
mnt
->
mnt_
sb
->
s_op
->
show_devname
(
m
,
mnt
);
err
=
sb
->
s_op
->
show_devname
(
m
,
mnt
);
}
else
{
if
(
r
->
mnt_devname
)
{
seq_puts
(
m
,
"device "
);
...
...
@@ -204,13 +205,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
/* file system type */
seq_puts
(
m
,
"with fstype "
);
show_type
(
m
,
mnt
->
mnt_
sb
);
show_type
(
m
,
sb
);
/* optional statistics */
if
(
mnt
->
mnt_
sb
->
s_op
->
show_stats
)
{
if
(
sb
->
s_op
->
show_stats
)
{
seq_putc
(
m
,
' '
);
if
(
!
err
)
err
=
mnt
->
mnt_sb
->
s_op
->
show_stats
(
m
,
mnt
);
err
=
sb
->
s_op
->
show_stats
(
m
,
mnt_path
.
dentry
);
}
seq_putc
(
m
,
'\n'
);
...
...
include/linux/fs.h
浏览文件 @
64132379
...
...
@@ -1675,7 +1675,7 @@ struct super_operations {
int
(
*
show_options
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_devname
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_path
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_stats
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_stats
)(
struct
seq_file
*
,
struct
dentry
*
);
#ifdef CONFIG_QUOTA
ssize_t
(
*
quota_read
)(
struct
super_block
*
,
int
,
char
*
,
size_t
,
loff_t
);
ssize_t
(
*
quota_write
)(
struct
super_block
*
,
int
,
const
char
*
,
size_t
,
loff_t
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录