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
bd7228ed
Commit
bd7228ed
authored
Jun 28, 2004
by
Steve French
Committed by
Steve French
Jun 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge /proc/fs/cifs/SimultaneousOps into /proc/fs/cifs/Stats
Signed-off-by: Steve French (sfrench@us.ibm.com)
parent
91f43975
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
fs/cifs/README
fs/cifs/README
+0
-2
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.c
+6
-16
No files found.
fs/cifs/README
View file @
bd7228ed
...
...
@@ -271,8 +271,6 @@ Misc /proc/fs/cifs Flags and Debug Info
Informational pseudo-files:
DebugData Displays information about active CIFS sessions
and shares.
SimultaneousOps Counter which holds maximum number of
simultaneous outstanding SMB/CIFS requests.
Stats Lists summary resource usage information as well as per
share statistics, if CONFIG_CIFS_STATS in enabled
in the kernel configuration.
...
...
fs/cifs/cifs_debug.c
View file @
bd7228ed
...
...
@@ -175,19 +175,6 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
return
length
;
}
int
cifs_total_xid_read
(
char
*
buf
,
char
**
beginBuffer
,
off_t
offset
,
int
length
,
int
*
eof
,
void
*
data
)
{
length
=
sprintf
(
buf
,
"Total vfs operations: %d and maximum simultaneous serviced by this filesystem: %d
\n
"
,
GlobalCurrentXid
,
GlobalMaxActiveXid
);
return
length
;
}
#ifdef CONFIG_CIFS_STATS
int
cifs_stats_read
(
char
*
buf
,
char
**
beginBuffer
,
off_t
offset
,
...
...
@@ -224,6 +211,12 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
length
+=
item_length
;
buf
+=
item_length
;
item_length
=
sprintf
(
buf
,
"Total vfs operations: %d maximum at one time: %d
\n
"
,
GlobalCurrentXid
,
GlobalMaxActiveXid
);
length
+=
item_length
;
buf
+=
item_length
;
i
=
0
;
read_lock
(
&
GlobalSMBSeslock
);
list_for_each
(
tmp
,
&
GlobalTreeConnectionList
)
{
...
...
@@ -322,8 +315,6 @@ cifs_proc_init(void)
create_proc_read_entry
(
"DebugData"
,
0
,
proc_fs_cifs
,
cifs_debug_data_read
,
0
);
create_proc_read_entry
(
"SimultaneousOps"
,
0
,
proc_fs_cifs
,
cifs_total_xid_read
,
0
);
#ifdef CONFIG_CIFS_STATS
create_proc_read_entry
(
"Stats"
,
0
,
proc_fs_cifs
,
cifs_stats_read
,
0
);
...
...
@@ -394,7 +385,6 @@ cifs_proc_clean(void)
remove_proc_entry
(
"DebugData"
,
proc_fs_cifs
);
remove_proc_entry
(
"cifsFYI"
,
proc_fs_cifs
);
remove_proc_entry
(
"traceSMB"
,
proc_fs_cifs
);
remove_proc_entry
(
"SimultaneousOps"
,
proc_fs_cifs
);
#ifdef CONFIG_CIFS_STATS
remove_proc_entry
(
"Stats"
,
proc_fs_cifs
);
#endif
...
...
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