Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
64132379
Commit
64132379
authored
Dec 08, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: switch ->show_stats to struct dentry *
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
cdcf116d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
16 deletions
+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
No files found.
drivers/staging/pohmelfs/inode.c
View file @
64132379
...
@@ -1759,11 +1759,11 @@ static int pohmelfs_root_handshake(struct pohmelfs_sb *psb)
...
@@ -1759,11 +1759,11 @@ static int pohmelfs_root_handshake(struct pohmelfs_sb *psb)
return
err
;
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
netfs_state
*
st
;
struct
pohmelfs_ctl
*
ctl
;
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
;
struct
pohmelfs_config
*
c
;
mutex_lock
(
&
psb
->
state_lock
);
mutex_lock
(
&
psb
->
state_lock
);
...
...
fs/cifs/cifsfs.c
View file @
64132379
...
@@ -488,7 +488,7 @@ static void cifs_umount_begin(struct super_block *sb)
...
@@ -488,7 +488,7 @@ static void cifs_umount_begin(struct super_block *sb)
}
}
#ifdef CONFIG_CIFS_STATS2
#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 */
/* BB FIXME */
return
0
;
return
0
;
...
...
fs/nfs/super.c
View file @
64132379
...
@@ -265,7 +265,7 @@ static int nfs_statfs(struct dentry *, struct kstatfs *);
...
@@ -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_options
(
struct
seq_file
*
,
struct
vfsmount
*
);
static
int
nfs_show_devname
(
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_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
*
,
static
struct
dentry
*
nfs_fs_mount
(
struct
file_system_type
*
,
int
,
const
char
*
,
void
*
);
int
,
const
char
*
,
void
*
);
static
struct
dentry
*
nfs_xdev_mount
(
struct
file_system_type
*
fs_type
,
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)
...
@@ -785,10 +785,10 @@ static int nfs_show_path(struct seq_file *m, struct vfsmount *mnt)
/*
/*
* Present statistical information for this VFS mountpoint
* 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
;
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
rpc_auth
*
auth
=
nfss
->
client
->
cl_auth
;
struct
nfs_iostats
totals
=
{
};
struct
nfs_iostats
totals
=
{
};
...
@@ -798,10 +798,10 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt)
...
@@ -798,10 +798,10 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt)
* Display all mount option settings
* Display all mount option settings
*/
*/
seq_printf
(
m
,
"
\n\t
opts:
\t
"
);
seq_printf
(
m
,
"
\n\t
opts:
\t
"
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_RDONLY
?
"ro"
:
"rw"
);
seq_puts
(
m
,
root
->
d
_sb
->
s_flags
&
MS_RDONLY
?
"ro"
:
"rw"
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_SYNCHRONOUS
?
",sync"
:
""
);
seq_puts
(
m
,
root
->
d
_sb
->
s_flags
&
MS_SYNCHRONOUS
?
",sync"
:
""
);
seq_puts
(
m
,
mnt
->
mnt
_sb
->
s_flags
&
MS_NOATIME
?
",noatime"
:
""
);
seq_puts
(
m
,
root
->
d
_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_NODIRATIME
?
",nodiratime"
:
""
);
nfs_show_mount_options
(
m
,
nfss
,
1
);
nfs_show_mount_options
(
m
,
nfss
,
1
);
seq_printf
(
m
,
"
\n\t
age:
\t
%lu"
,
(
jiffies
-
nfss
->
mount_time
)
/
HZ
);
seq_printf
(
m
,
"
\n\t
age:
\t
%lu"
,
(
jiffies
-
nfss
->
mount_time
)
/
HZ
);
...
...
fs/proc_namespace.c
View file @
64132379
...
@@ -183,12 +183,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
...
@@ -183,12 +183,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
{
{
struct
mount
*
r
=
real_mount
(
mnt
);
struct
mount
*
r
=
real_mount
(
mnt
);
struct
path
mnt_path
=
{
.
dentry
=
mnt
->
mnt_root
,
.
mnt
=
mnt
};
struct
path
mnt_path
=
{
.
dentry
=
mnt
->
mnt_root
,
.
mnt
=
mnt
};
struct
super_block
*
sb
=
mnt_path
.
dentry
->
d_sb
;
int
err
=
0
;
int
err
=
0
;
/* device */
/* device */
if
(
mnt
->
mnt_
sb
->
s_op
->
show_devname
)
{
if
(
sb
->
s_op
->
show_devname
)
{
seq_puts
(
m
,
"device "
);
seq_puts
(
m
,
"device "
);
err
=
mnt
->
mnt_
sb
->
s_op
->
show_devname
(
m
,
mnt
);
err
=
sb
->
s_op
->
show_devname
(
m
,
mnt
);
}
else
{
}
else
{
if
(
r
->
mnt_devname
)
{
if
(
r
->
mnt_devname
)
{
seq_puts
(
m
,
"device "
);
seq_puts
(
m
,
"device "
);
...
@@ -204,13 +205,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
...
@@ -204,13 +205,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
/* file system type */
/* file system type */
seq_puts
(
m
,
"with fstype "
);
seq_puts
(
m
,
"with fstype "
);
show_type
(
m
,
mnt
->
mnt_
sb
);
show_type
(
m
,
sb
);
/* optional statistics */
/* optional statistics */
if
(
mnt
->
mnt_
sb
->
s_op
->
show_stats
)
{
if
(
sb
->
s_op
->
show_stats
)
{
seq_putc
(
m
,
' '
);
seq_putc
(
m
,
' '
);
if
(
!
err
)
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'
);
seq_putc
(
m
,
'\n'
);
...
...
include/linux/fs.h
View file @
64132379
...
@@ -1675,7 +1675,7 @@ struct super_operations {
...
@@ -1675,7 +1675,7 @@ struct super_operations {
int
(
*
show_options
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_options
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_devname
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_devname
)(
struct
seq_file
*
,
struct
vfsmount
*
);
int
(
*
show_path
)(
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
#ifdef CONFIG_QUOTA
ssize_t
(
*
quota_read
)(
struct
super_block
*
,
int
,
char
*
,
size_t
,
loff_t
);
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
);
ssize_t
(
*
quota_write
)(
struct
super_block
*
,
int
,
const
char
*
,
size_t
,
loff_t
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment