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
nexedi
linux
Commits
c0f95d0d
Commit
c0f95d0d
authored
Jun 18, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://cifs.bkbits.net/linux-2.5cifs
into stevef95.austin.ibm.com:/home/stevef/linux-2.5cifs
parents
e9dda892
1c748cf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.c
+7
-1
fs/cifs/cifsglob.h
fs/cifs/cifsglob.h
+2
-0
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+12
-1
No files found.
fs/cifs/cifs_debug.c
View file @
c0f95d0d
...
...
@@ -108,7 +108,7 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
mid_q_entry
,
qhead
);
if
(
mid_entry
)
{
length
=
sprintf
(
buf
,
"State: %d com: %d pid: %d tsk: %p
\n
"
,
mid_entry
->
midState
,
mid_entry
->
command
,
mid_entry
->
pid
,
mid_entry
->
tsk
);
length
=
sprintf
(
buf
,
"State: %d com: %d pid: %d tsk: %p
mid %d
\n
"
,
mid_entry
->
midState
,
mid_entry
->
command
,
mid_entry
->
pid
,
mid_entry
->
tsk
,
mid_entry
->
mid
);
buf
+=
length
;
}
}
...
...
@@ -259,6 +259,12 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
atomic_read
(
&
tcon
->
num_rmdirs
));
buf
+=
item_length
;
length
+=
item_length
;
item_length
=
sprintf
(
buf
,
"
\n
Renames: %d T2 Renames %d"
,
atomic_read
(
&
tcon
->
num_renames
),
atomic_read
(
&
tcon
->
num_t2renames
));
buf
+=
item_length
;
length
+=
item_length
;
}
read_unlock
(
&
GlobalSMBSeslock
);
...
...
fs/cifs/cifsglob.h
View file @
c0f95d0d
...
...
@@ -211,6 +211,8 @@ struct cifsTconInfo {
atomic_t
num_deletes
;
atomic_t
num_mkdirs
;
atomic_t
num_rmdirs
;
atomic_t
num_renames
;
atomic_t
num_t2renames
;
__u64
bytes_read
;
__u64
bytes_written
;
spinlock_t
stat_lock
;
...
...
fs/cifs/cifssmb.c
View file @
c0f95d0d
...
...
@@ -941,7 +941,14 @@ CIFSSMBRename(const int xid, struct cifsTconInfo *tcon,
(
struct
smb_hdr
*
)
pSMBr
,
&
bytes_returned
,
0
);
if
(
rc
)
{
cFYI
(
1
,
(
"Send error in rename = %d"
,
rc
));
}
#ifdef CONFIG_CIFS_STATS
else
{
atomic_inc
(
&
tcon
->
num_renames
);
}
#endif
if
(
pSMB
)
cifs_buf_release
(
pSMB
);
...
...
@@ -1017,7 +1024,11 @@ int CIFSSMBRenameOpenFile(const int xid,struct cifsTconInfo *pTcon,
if
(
rc
)
{
cFYI
(
1
,(
"Send error in Rename (by file handle) = %d"
,
rc
));
}
#ifdef CONFIG_CIFS_STATS
else
{
atomic_inc
(
&
pTcon
->
num_t2renames
);
}
#endif
if
(
pSMB
)
cifs_buf_release
(
pSMB
);
...
...
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