aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2011-05-27 00:34:02 -0400
committerSteve French <sfrench@us.ibm.com>2011-05-27 00:34:02 -0400
commit96daf2b09178d8ebde2b0d56b027de917c17dfdf (patch)
tree74802fa44e87925e49067d5106eb762cc27b9b97 /fs/cifs/cifsglob.h
parent07cc6cf9ef84bcf6a60ee513332bcb0ad5d628d8 (diff)
[CIFS] Rename three structures to avoid camel case
secMode to sec_mode and cifsTconInfo to cifs_tcon and cifsSesInfo to cifs_ses Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 310cddabd3fd..6255fa812c7a 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -254,7 +254,7 @@ struct TCP_Server_Info {
254 struct mutex srv_mutex; 254 struct mutex srv_mutex;
255 struct task_struct *tsk; 255 struct task_struct *tsk;
256 char server_GUID[16]; 256 char server_GUID[16];
257 char secMode; 257 char sec_mode;
258 bool session_estab; /* mark when very first sess is established */ 258 bool session_estab; /* mark when very first sess is established */
259 u16 dialect; /* dialect index that server chose */ 259 u16 dialect; /* dialect index that server chose */
260 enum securityEnum secType; 260 enum securityEnum secType;
@@ -329,7 +329,7 @@ static inline void cifs_set_net_ns(struct TCP_Server_Info *srv, struct net *net)
329/* 329/*
330 * Session structure. One of these for each uid session with a particular host 330 * Session structure. One of these for each uid session with a particular host
331 */ 331 */
332struct cifsSesInfo { 332struct cifs_ses {
333 struct list_head smb_ses_list; 333 struct list_head smb_ses_list;
334 struct list_head tcon_list; 334 struct list_head tcon_list;
335 struct mutex session_mutex; 335 struct mutex session_mutex;
@@ -369,11 +369,11 @@ struct cifsSesInfo {
369 * there is one of these for each connection to a resource on a particular 369 * there is one of these for each connection to a resource on a particular
370 * session 370 * session
371 */ 371 */
372struct cifsTconInfo { 372struct cifs_tcon {
373 struct list_head tcon_list; 373 struct list_head tcon_list;
374 int tc_count; 374 int tc_count;
375 struct list_head openFileList; 375 struct list_head openFileList;
376 struct cifsSesInfo *ses; /* pointer to session associated with */ 376 struct cifs_ses *ses; /* pointer to session associated with */
377 char treeName[MAX_TREE_SIZE + 1]; /* UNC name of resource in ASCII */ 377 char treeName[MAX_TREE_SIZE + 1]; /* UNC name of resource in ASCII */
378 char *nativeFileSystem; 378 char *nativeFileSystem;
379 char *password; /* for share-level security */ 379 char *password; /* for share-level security */
@@ -455,12 +455,12 @@ struct tcon_link {
455#define TCON_LINK_IN_TREE 2 455#define TCON_LINK_IN_TREE 2
456 unsigned long tl_time; 456 unsigned long tl_time;
457 atomic_t tl_count; 457 atomic_t tl_count;
458 struct cifsTconInfo *tl_tcon; 458 struct cifs_tcon *tl_tcon;
459}; 459};
460 460
461extern struct tcon_link *cifs_sb_tlink(struct cifs_sb_info *cifs_sb); 461extern struct tcon_link *cifs_sb_tlink(struct cifs_sb_info *cifs_sb);
462 462
463static inline struct cifsTconInfo * 463static inline struct cifs_tcon *
464tlink_tcon(struct tcon_link *tlink) 464tlink_tcon(struct tcon_link *tlink)
465{ 465{
466 return tlink->tl_tcon; 466 return tlink->tl_tcon;
@@ -477,7 +477,7 @@ cifs_get_tlink(struct tcon_link *tlink)
477} 477}
478 478
479/* This function is always expected to succeed */ 479/* This function is always expected to succeed */
480extern struct cifsTconInfo *cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb); 480extern struct cifs_tcon *cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb);
481 481
482/* 482/*
483 * This info hangs off the cifsFileInfo structure, pointed to by llist. 483 * This info hangs off the cifsFileInfo structure, pointed to by llist.
@@ -535,7 +535,7 @@ struct cifs_io_parms {
535 __u32 pid; 535 __u32 pid;
536 __u64 offset; 536 __u64 offset;
537 unsigned int length; 537 unsigned int length;
538 struct cifsTconInfo *tcon; 538 struct cifs_tcon *tcon;
539}; 539};
540 540
541/* 541/*
@@ -615,7 +615,7 @@ convert_delimiter(char *path, char delim)
615#ifdef CONFIG_CIFS_STATS 615#ifdef CONFIG_CIFS_STATS
616#define cifs_stats_inc atomic_inc 616#define cifs_stats_inc atomic_inc
617 617
618static inline void cifs_stats_bytes_written(struct cifsTconInfo *tcon, 618static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon,
619 unsigned int bytes) 619 unsigned int bytes)
620{ 620{
621 if (bytes) { 621 if (bytes) {
@@ -625,7 +625,7 @@ static inline void cifs_stats_bytes_written(struct cifsTconInfo *tcon,
625 } 625 }
626} 626}
627 627
628static inline void cifs_stats_bytes_read(struct cifsTconInfo *tcon, 628static inline void cifs_stats_bytes_read(struct cifs_tcon *tcon,
629 unsigned int bytes) 629 unsigned int bytes)
630{ 630{
631 spin_lock(&tcon->stat_lock); 631 spin_lock(&tcon->stat_lock);
@@ -675,7 +675,7 @@ struct mid_q_entry {
675struct oplock_q_entry { 675struct oplock_q_entry {
676 struct list_head qhead; 676 struct list_head qhead;
677 struct inode *pinode; 677 struct inode *pinode;
678 struct cifsTconInfo *tcon; 678 struct cifs_tcon *tcon;
679 __u16 netfid; 679 __u16 netfid;
680}; 680};
681 681