diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-04 12:49:07 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-04 12:49:07 -0400 |
commit | cd915493fce912f1bd838ee1250737ecf33b8fae (patch) | |
tree | e14ec6643de91f473edb26a89905e710596fe6bc /fs/gfs2/locking | |
parent | a91ea69ffd3f8a0b7139bfd44042ab384461e631 (diff) |
[GFS2] Change all types to uX style
This makes all fixed size types have consistent names.
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking')
-rw-r--r-- | fs/gfs2/locking/dlm/lock.c | 8 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/lock_dlm.h | 14 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/thread.c | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c index 1f15b6e8b2cf..dceea419b94b 100644 --- a/fs/gfs2/locking/dlm/lock.c +++ b/fs/gfs2/locking/dlm/lock.c | |||
@@ -61,7 +61,7 @@ void gdlm_queue_delayed(struct gdlm_lock *lp) | |||
61 | 61 | ||
62 | /* convert gfs lock-state to dlm lock-mode */ | 62 | /* convert gfs lock-state to dlm lock-mode */ |
63 | 63 | ||
64 | static int16_t make_mode(int16_t lmstate) | 64 | static s16 make_mode(s16 lmstate) |
65 | { | 65 | { |
66 | switch (lmstate) { | 66 | switch (lmstate) { |
67 | case LM_ST_UNLOCKED: | 67 | case LM_ST_UNLOCKED: |
@@ -79,7 +79,7 @@ static int16_t make_mode(int16_t lmstate) | |||
79 | 79 | ||
80 | /* convert dlm lock-mode to gfs lock-state */ | 80 | /* convert dlm lock-mode to gfs lock-state */ |
81 | 81 | ||
82 | int16_t gdlm_make_lmstate(int16_t dlmmode) | 82 | s16 gdlm_make_lmstate(s16 dlmmode) |
83 | { | 83 | { |
84 | switch (dlmmode) { | 84 | switch (dlmmode) { |
85 | case DLM_LOCK_IV: | 85 | case DLM_LOCK_IV: |
@@ -101,14 +101,14 @@ int16_t gdlm_make_lmstate(int16_t dlmmode) | |||
101 | 101 | ||
102 | static void check_cur_state(struct gdlm_lock *lp, unsigned int cur_state) | 102 | static void check_cur_state(struct gdlm_lock *lp, unsigned int cur_state) |
103 | { | 103 | { |
104 | int16_t cur = make_mode(cur_state); | 104 | s16 cur = make_mode(cur_state); |
105 | if (lp->cur != DLM_LOCK_IV) | 105 | if (lp->cur != DLM_LOCK_IV) |
106 | gdlm_assert(lp->cur == cur, "%d, %d", lp->cur, cur); | 106 | gdlm_assert(lp->cur == cur, "%d, %d", lp->cur, cur); |
107 | } | 107 | } |
108 | 108 | ||
109 | static inline unsigned int make_flags(struct gdlm_lock *lp, | 109 | static inline unsigned int make_flags(struct gdlm_lock *lp, |
110 | unsigned int gfs_flags, | 110 | unsigned int gfs_flags, |
111 | int16_t cur, int16_t req) | 111 | s16 cur, s16 req) |
112 | { | 112 | { |
113 | unsigned int lkf = 0; | 113 | unsigned int lkf = 0; |
114 | 114 | ||
diff --git a/fs/gfs2/locking/dlm/lock_dlm.h b/fs/gfs2/locking/dlm/lock_dlm.h index 941063498532..c7b6e370258f 100644 --- a/fs/gfs2/locking/dlm/lock_dlm.h +++ b/fs/gfs2/locking/dlm/lock_dlm.h | |||
@@ -56,7 +56,7 @@ enum { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | struct gdlm_ls { | 58 | struct gdlm_ls { |
59 | uint32_t id; | 59 | u32 id; |
60 | int jid; | 60 | int jid; |
61 | int first; | 61 | int first; |
62 | int first_done; | 62 | int first_done; |
@@ -77,7 +77,7 @@ struct gdlm_ls { | |||
77 | struct list_head delayed; | 77 | struct list_head delayed; |
78 | struct list_head submit; | 78 | struct list_head submit; |
79 | struct list_head all_locks; | 79 | struct list_head all_locks; |
80 | uint32_t all_locks_count; | 80 | u32 all_locks_count; |
81 | wait_queue_head_t wait_control; | 81 | wait_queue_head_t wait_control; |
82 | struct task_struct *thread1; | 82 | struct task_struct *thread1; |
83 | struct task_struct *thread2; | 83 | struct task_struct *thread2; |
@@ -109,10 +109,10 @@ struct gdlm_lock { | |||
109 | char *lvb; | 109 | char *lvb; |
110 | struct dlm_lksb lksb; | 110 | struct dlm_lksb lksb; |
111 | 111 | ||
112 | int16_t cur; | 112 | s16 cur; |
113 | int16_t req; | 113 | s16 req; |
114 | int16_t prev_req; | 114 | s16 prev_req; |
115 | uint32_t lkf; /* dlm flags DLM_LKF_ */ | 115 | u32 lkf; /* dlm flags DLM_LKF_ */ |
116 | unsigned long flags; /* lock_dlm flags LFL_ */ | 116 | unsigned long flags; /* lock_dlm flags LFL_ */ |
117 | 117 | ||
118 | int bast_mode; /* protected by async_lock */ | 118 | int bast_mode; /* protected by async_lock */ |
@@ -158,7 +158,7 @@ void gdlm_release_threads(struct gdlm_ls *); | |||
158 | 158 | ||
159 | /* lock.c */ | 159 | /* lock.c */ |
160 | 160 | ||
161 | int16_t gdlm_make_lmstate(int16_t); | 161 | s16 gdlm_make_lmstate(s16); |
162 | void gdlm_queue_delayed(struct gdlm_lock *); | 162 | void gdlm_queue_delayed(struct gdlm_lock *); |
163 | void gdlm_submit_delayed(struct gdlm_ls *); | 163 | void gdlm_submit_delayed(struct gdlm_ls *); |
164 | int gdlm_release_all_locks(struct gdlm_ls *); | 164 | int gdlm_release_all_locks(struct gdlm_ls *); |
diff --git a/fs/gfs2/locking/dlm/thread.c b/fs/gfs2/locking/dlm/thread.c index a782246d666b..d4895ec242f6 100644 --- a/fs/gfs2/locking/dlm/thread.c +++ b/fs/gfs2/locking/dlm/thread.c | |||
@@ -48,7 +48,7 @@ static void process_complete(struct gdlm_lock *lp) | |||
48 | { | 48 | { |
49 | struct gdlm_ls *ls = lp->ls; | 49 | struct gdlm_ls *ls = lp->ls; |
50 | struct lm_async_cb acb; | 50 | struct lm_async_cb acb; |
51 | int16_t prev_mode = lp->cur; | 51 | s16 prev_mode = lp->cur; |
52 | 52 | ||
53 | memset(&acb, 0, sizeof(acb)); | 53 | memset(&acb, 0, sizeof(acb)); |
54 | 54 | ||