aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h48
1 files changed, 27 insertions, 21 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index ae9a1e900c15..0896328418aa 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -197,6 +197,8 @@ struct smb_version_operations {
197 /* find mid corresponding to the response message */ 197 /* find mid corresponding to the response message */
198 struct mid_q_entry * (*find_mid)(struct TCP_Server_Info *, char *); 198 struct mid_q_entry * (*find_mid)(struct TCP_Server_Info *, char *);
199 void (*dump_detail)(void *); 199 void (*dump_detail)(void *);
200 void (*clear_stats)(struct cifs_tcon *);
201 void (*print_stats)(struct seq_file *m, struct cifs_tcon *);
200 /* verify the message */ 202 /* verify the message */
201 int (*check_message)(char *, unsigned int); 203 int (*check_message)(char *, unsigned int);
202 bool (*is_oplock_break)(char *, struct TCP_Server_Info *); 204 bool (*is_oplock_break)(char *, struct TCP_Server_Info *);
@@ -566,27 +568,31 @@ struct cifs_tcon {
566 enum statusEnum tidStatus; 568 enum statusEnum tidStatus;
567#ifdef CONFIG_CIFS_STATS 569#ifdef CONFIG_CIFS_STATS
568 atomic_t num_smbs_sent; 570 atomic_t num_smbs_sent;
569 atomic_t num_writes; 571 union {
570 atomic_t num_reads; 572 struct {
571 atomic_t num_flushes; 573 atomic_t num_writes;
572 atomic_t num_oplock_brks; 574 atomic_t num_reads;
573 atomic_t num_opens; 575 atomic_t num_flushes;
574 atomic_t num_closes; 576 atomic_t num_oplock_brks;
575 atomic_t num_deletes; 577 atomic_t num_opens;
576 atomic_t num_mkdirs; 578 atomic_t num_closes;
577 atomic_t num_posixopens; 579 atomic_t num_deletes;
578 atomic_t num_posixmkdirs; 580 atomic_t num_mkdirs;
579 atomic_t num_rmdirs; 581 atomic_t num_posixopens;
580 atomic_t num_renames; 582 atomic_t num_posixmkdirs;
581 atomic_t num_t2renames; 583 atomic_t num_rmdirs;
582 atomic_t num_ffirst; 584 atomic_t num_renames;
583 atomic_t num_fnext; 585 atomic_t num_t2renames;
584 atomic_t num_fclose; 586 atomic_t num_ffirst;
585 atomic_t num_hardlinks; 587 atomic_t num_fnext;
586 atomic_t num_symlinks; 588 atomic_t num_fclose;
587 atomic_t num_locks; 589 atomic_t num_hardlinks;
588 atomic_t num_acl_get; 590 atomic_t num_symlinks;
589 atomic_t num_acl_set; 591 atomic_t num_locks;
592 atomic_t num_acl_get;
593 atomic_t num_acl_set;
594 } cifs_stats;
595 } stats;
590#ifdef CONFIG_CIFS_STATS2 596#ifdef CONFIG_CIFS_STATS2
591 unsigned long long time_writes; 597 unsigned long long time_writes;
592 unsigned long long time_reads; 598 unsigned long long time_reads;