diff options
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 838171328076..f4c6544468ab 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c | |||
@@ -254,36 +254,46 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset, | |||
254 | buf += sprintf(buf, "\tDISCONNECTED "); | 254 | buf += sprintf(buf, "\tDISCONNECTED "); |
255 | length += 14; | 255 | length += 14; |
256 | } | 256 | } |
257 | item_length = sprintf(buf,"\nSMBs: %d Oplock Breaks: %d", | 257 | item_length = sprintf(buf, "\nSMBs: %d Oplock Breaks: %d", |
258 | atomic_read(&tcon->num_smbs_sent), | 258 | atomic_read(&tcon->num_smbs_sent), |
259 | atomic_read(&tcon->num_oplock_brks)); | 259 | atomic_read(&tcon->num_oplock_brks)); |
260 | buf += item_length; | 260 | buf += item_length; |
261 | length += item_length; | 261 | length += item_length; |
262 | item_length = sprintf(buf,"\nReads: %d Bytes %lld", | 262 | item_length = sprintf(buf, "\nReads: %d Bytes %lld", |
263 | atomic_read(&tcon->num_reads), | 263 | atomic_read(&tcon->num_reads), |
264 | (long long)(tcon->bytes_read)); | 264 | (long long)(tcon->bytes_read)); |
265 | buf += item_length; | 265 | buf += item_length; |
266 | length += item_length; | 266 | length += item_length; |
267 | item_length = sprintf(buf,"\nWrites: %d Bytes: %lld", | 267 | item_length = sprintf(buf, "\nWrites: %d Bytes: %lld", |
268 | atomic_read(&tcon->num_writes), | 268 | atomic_read(&tcon->num_writes), |
269 | (long long)(tcon->bytes_written)); | 269 | (long long)(tcon->bytes_written)); |
270 | buf += item_length; | ||
271 | length += item_length; | ||
272 | item_length = sprintf(buf, | ||
273 | "\nLocks: %d HardLinks: %d Symlinks: %d", | ||
274 | atomic_read(&tcon->num_locks), | ||
275 | atomic_read(&tcon->num_hardlinks), | ||
276 | atomic_read(&tcon->num_symlinks)); | ||
277 | buf += item_length; | ||
278 | length += item_length; | ||
279 | |||
280 | item_length = sprintf(buf, "\nOpens: %d Closes: %d Deletes: %d", | ||
281 | atomic_read(&tcon->num_opens), | ||
282 | atomic_read(&tcon->num_closes), | ||
283 | atomic_read(&tcon->num_deletes)); | ||
270 | buf += item_length; | 284 | buf += item_length; |
271 | length += item_length; | 285 | length += item_length; |
272 | item_length = sprintf(buf, | 286 | item_length = sprintf(buf, "\nMkdirs: %d Rmdirs: %d", |
273 | "\nOpens: %d Deletes: %d\nMkdirs: %d Rmdirs: %d", | ||
274 | atomic_read(&tcon->num_opens), | ||
275 | atomic_read(&tcon->num_deletes), | ||
276 | atomic_read(&tcon->num_mkdirs), | 287 | atomic_read(&tcon->num_mkdirs), |
277 | atomic_read(&tcon->num_rmdirs)); | 288 | atomic_read(&tcon->num_rmdirs)); |
278 | buf += item_length; | 289 | buf += item_length; |
279 | length += item_length; | 290 | length += item_length; |
280 | item_length = sprintf(buf, | 291 | item_length = sprintf(buf, "\nRenames: %d T2 Renames %d", |
281 | "\nRenames: %d T2 Renames %d", | ||
282 | atomic_read(&tcon->num_renames), | 292 | atomic_read(&tcon->num_renames), |
283 | atomic_read(&tcon->num_t2renames)); | 293 | atomic_read(&tcon->num_t2renames)); |
284 | buf += item_length; | 294 | buf += item_length; |
285 | length += item_length; | 295 | length += item_length; |
286 | item_length = sprintf(buf,"\nFindFirst: %d FNext %d FClose %d", | 296 | item_length = sprintf(buf, "\nFindFirst: %d FNext %d FClose %d", |
287 | atomic_read(&tcon->num_ffirst), | 297 | atomic_read(&tcon->num_ffirst), |
288 | atomic_read(&tcon->num_fnext), | 298 | atomic_read(&tcon->num_fnext), |
289 | atomic_read(&tcon->num_fclose)); | 299 | atomic_read(&tcon->num_fclose)); |