Commit bd7228ed authored by Steve French's avatar Steve French Committed by Steve French

merge /proc/fs/cifs/SimultaneousOps into /proc/fs/cifs/Stats

Signed-off-by: Steve French (sfrench@us.ibm.com)
parent 91f43975
...@@ -271,8 +271,6 @@ Misc /proc/fs/cifs Flags and Debug Info ...@@ -271,8 +271,6 @@ Misc /proc/fs/cifs Flags and Debug Info
Informational pseudo-files: Informational pseudo-files:
DebugData Displays information about active CIFS sessions DebugData Displays information about active CIFS sessions
and shares. and shares.
SimultaneousOps Counter which holds maximum number of
simultaneous outstanding SMB/CIFS requests.
Stats Lists summary resource usage information as well as per Stats Lists summary resource usage information as well as per
share statistics, if CONFIG_CIFS_STATS in enabled share statistics, if CONFIG_CIFS_STATS in enabled
in the kernel configuration. in the kernel configuration.
......
...@@ -175,19 +175,6 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset, ...@@ -175,19 +175,6 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
return length; 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 #ifdef CONFIG_CIFS_STATS
int int
cifs_stats_read(char *buf, char **beginBuffer, off_t offset, cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
...@@ -224,6 +211,12 @@ 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; length += item_length;
buf += 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; i = 0;
read_lock(&GlobalSMBSeslock); read_lock(&GlobalSMBSeslock);
list_for_each(tmp, &GlobalTreeConnectionList) { list_for_each(tmp, &GlobalTreeConnectionList) {
...@@ -322,8 +315,6 @@ cifs_proc_init(void) ...@@ -322,8 +315,6 @@ cifs_proc_init(void)
create_proc_read_entry("DebugData", 0, proc_fs_cifs, create_proc_read_entry("DebugData", 0, proc_fs_cifs,
cifs_debug_data_read, 0); cifs_debug_data_read, 0);
create_proc_read_entry("SimultaneousOps", 0, proc_fs_cifs,
cifs_total_xid_read, 0);
#ifdef CONFIG_CIFS_STATS #ifdef CONFIG_CIFS_STATS
create_proc_read_entry("Stats", 0, proc_fs_cifs, create_proc_read_entry("Stats", 0, proc_fs_cifs,
cifs_stats_read, 0); cifs_stats_read, 0);
...@@ -394,7 +385,6 @@ cifs_proc_clean(void) ...@@ -394,7 +385,6 @@ cifs_proc_clean(void)
remove_proc_entry("DebugData", proc_fs_cifs); remove_proc_entry("DebugData", proc_fs_cifs);
remove_proc_entry("cifsFYI", proc_fs_cifs); remove_proc_entry("cifsFYI", proc_fs_cifs);
remove_proc_entry("traceSMB", proc_fs_cifs); remove_proc_entry("traceSMB", proc_fs_cifs);
remove_proc_entry("SimultaneousOps", proc_fs_cifs);
#ifdef CONFIG_CIFS_STATS #ifdef CONFIG_CIFS_STATS
remove_proc_entry("Stats", proc_fs_cifs); remove_proc_entry("Stats", proc_fs_cifs);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment