Commit 541ac713 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman

Staging: lustre: lnet: Remove and rename struct typedef lstcon_session_t

This patch gets rid of struct typedef lstcon_session_t as it is not
suggested to use typdefs for structure types. Also drop '_t' from the name.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a6e19b4d
...@@ -58,7 +58,7 @@ do { \ ...@@ -58,7 +58,7 @@ do { \
(p)->nle_nnode++; \ (p)->nle_nnode++; \
} while (0) } while (0)
lstcon_session_t console_session; struct lstcon_session console_session;
static void static void
lstcon_node_get(lstcon_node_t *nd) lstcon_node_get(lstcon_node_t *nd)
...@@ -1994,7 +1994,7 @@ lstcon_console_init(void) ...@@ -1994,7 +1994,7 @@ lstcon_console_init(void)
int i; int i;
int rc; int rc;
memset(&console_session, 0, sizeof(lstcon_session_t)); memset(&console_session, 0, sizeof(struct lstcon_session));
console_session.ses_id = LST_INVALID_SID; console_session.ses_id = LST_INVALID_SID;
console_session.ses_state = LST_SESSION_NONE; console_session.ses_state = LST_SESSION_NONE;
......
...@@ -135,7 +135,7 @@ typedef struct lstcon_test { ...@@ -135,7 +135,7 @@ typedef struct lstcon_test {
#define LST_CONSOLE_TIMEOUT 300 /* default console timeout */ #define LST_CONSOLE_TIMEOUT 300 /* default console timeout */
typedef struct { struct lstcon_session {
struct mutex ses_mutex; /* only 1 thread in session */ struct mutex ses_mutex; /* only 1 thread in session */
lst_sid_t ses_id; /* global session id */ lst_sid_t ses_id; /* global session id */
int ses_key; /* local session key */ int ses_key; /* local session key */
...@@ -165,9 +165,9 @@ typedef struct { ...@@ -165,9 +165,9 @@ typedef struct {
spinlock_t ses_rpc_lock; /* serialize */ spinlock_t ses_rpc_lock; /* serialize */
atomic_t ses_rpc_counter; /* # of initialized RPCs */ atomic_t ses_rpc_counter; /* # of initialized RPCs */
struct list_head ses_rpc_freelist; /* idle console rpc */ struct list_head ses_rpc_freelist; /* idle console rpc */
} lstcon_session_t; /* session descriptor */ }; /* session descriptor */
extern lstcon_session_t console_session; extern struct lstcon_session console_session;
static inline lstcon_trans_stat_t * static inline lstcon_trans_stat_t *
lstcon_trans_stat(void) lstcon_trans_stat(void)
......
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