diff options
author | David Teigland <teigland@redhat.com> | 2006-05-24 09:21:30 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-24 09:21:30 -0400 |
commit | 9229f013495dcdae76e9942ebc2cfc69851fe10a (patch) | |
tree | 46c3b25ea005fd2fdbc17a510d30d40e3abd39e1 /fs/gfs2/locking/dlm | |
parent | 90cdd2083aea9a536ecdef62840db01fff2e645d (diff) |
[GFS2] Cast 64 bit printk args to unsigned long long.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/locking/dlm')
-rw-r--r-- | fs/gfs2/locking/dlm/lock.c | 39 | ||||
-rw-r--r-- | fs/gfs2/locking/dlm/plock.c | 7 |
2 files changed, 25 insertions, 21 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c index 3b0dfd7ae26e..e74f1215672f 100644 --- a/fs/gfs2/locking/dlm/lock.c +++ b/fs/gfs2/locking/dlm/lock.c | |||
@@ -35,7 +35,8 @@ static inline void gdlm_bast(void *astarg, int mode) | |||
35 | 35 | ||
36 | if (!mode) { | 36 | if (!mode) { |
37 | printk(KERN_INFO "lock_dlm: bast mode zero %x,%llx\n", | 37 | printk(KERN_INFO "lock_dlm: bast mode zero %x,%llx\n", |
38 | lp->lockname.ln_type, lp->lockname.ln_number); | 38 | lp->lockname.ln_type, |
39 | (unsigned long long)lp->lockname.ln_number); | ||
39 | return; | 40 | return; |
40 | } | 41 | } |
41 | 42 | ||
@@ -154,7 +155,7 @@ static inline void make_strname(struct lm_lockname *lockname, | |||
154 | struct gdlm_strname *str) | 155 | struct gdlm_strname *str) |
155 | { | 156 | { |
156 | sprintf(str->name, "%8x%16llx", lockname->ln_type, | 157 | sprintf(str->name, "%8x%16llx", lockname->ln_type, |
157 | lockname->ln_number); | 158 | (unsigned long long)lockname->ln_number); |
158 | str->namelen = GDLM_STRNAME_BYTES; | 159 | str->namelen = GDLM_STRNAME_BYTES; |
159 | } | 160 | } |
160 | 161 | ||
@@ -197,8 +198,8 @@ void gdlm_delete_lp(struct gdlm_lock *lp) | |||
197 | list_del_init(&lp->blist); | 198 | list_del_init(&lp->blist); |
198 | if (!list_empty(&lp->delay_list)) | 199 | if (!list_empty(&lp->delay_list)) |
199 | list_del_init(&lp->delay_list); | 200 | list_del_init(&lp->delay_list); |
200 | gdlm_assert(!list_empty(&lp->all_list), | 201 | gdlm_assert(!list_empty(&lp->all_list), "%x,%llx", lp->lockname.ln_type, |
201 | "%x,%llx", lp->lockname.ln_type, lp->lockname.ln_number); | 202 | (unsigned long long)lp->lockname.ln_number); |
202 | list_del_init(&lp->all_list); | 203 | list_del_init(&lp->all_list); |
203 | ls->all_locks_count--; | 204 | ls->all_locks_count--; |
204 | spin_unlock(&ls->async_lock); | 205 | spin_unlock(&ls->async_lock); |
@@ -253,7 +254,7 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp) | |||
253 | set_bit(LFL_ACTIVE, &lp->flags); | 254 | set_bit(LFL_ACTIVE, &lp->flags); |
254 | 255 | ||
255 | log_debug("lk %x,%llx id %x %d,%d %x", lp->lockname.ln_type, | 256 | log_debug("lk %x,%llx id %x %d,%d %x", lp->lockname.ln_type, |
256 | lp->lockname.ln_number, lp->lksb.sb_lkid, | 257 | (unsigned long long)lp->lockname.ln_number, lp->lksb.sb_lkid, |
257 | lp->cur, lp->req, lp->lkf); | 258 | lp->cur, lp->req, lp->lkf); |
258 | 259 | ||
259 | error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf, | 260 | error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf, |
@@ -269,8 +270,8 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp) | |||
269 | if (error) { | 270 | if (error) { |
270 | log_debug("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x " | 271 | log_debug("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x " |
271 | "flags=%lx", ls->fsname, lp->lockname.ln_type, | 272 | "flags=%lx", ls->fsname, lp->lockname.ln_type, |
272 | lp->lockname.ln_number, error, lp->cur, lp->req, | 273 | (unsigned long long)lp->lockname.ln_number, error, |
273 | lp->lkf, lp->flags); | 274 | lp->cur, lp->req, lp->lkf, lp->flags); |
274 | return LM_OUT_ERROR; | 275 | return LM_OUT_ERROR; |
275 | } | 276 | } |
276 | return LM_OUT_ASYNC; | 277 | return LM_OUT_ASYNC; |
@@ -289,15 +290,16 @@ static unsigned int gdlm_do_unlock(struct gdlm_lock *lp) | |||
289 | lkf = DLM_LKF_VALBLK; | 290 | lkf = DLM_LKF_VALBLK; |
290 | 291 | ||
291 | log_debug("un %x,%llx %x %d %x", lp->lockname.ln_type, | 292 | log_debug("un %x,%llx %x %d %x", lp->lockname.ln_type, |
292 | lp->lockname.ln_number, lp->lksb.sb_lkid, lp->cur, lkf); | 293 | (unsigned long long)lp->lockname.ln_number, |
294 | lp->lksb.sb_lkid, lp->cur, lkf); | ||
293 | 295 | ||
294 | error = dlm_unlock(ls->dlm_lockspace, lp->lksb.sb_lkid, lkf, NULL, lp); | 296 | error = dlm_unlock(ls->dlm_lockspace, lp->lksb.sb_lkid, lkf, NULL, lp); |
295 | 297 | ||
296 | if (error) { | 298 | if (error) { |
297 | log_debug("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x " | 299 | log_debug("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x " |
298 | "flags=%lx", ls->fsname, lp->lockname.ln_type, | 300 | "flags=%lx", ls->fsname, lp->lockname.ln_type, |
299 | lp->lockname.ln_number, error, lp->cur, lp->req, | 301 | (unsigned long long)lp->lockname.ln_number, error, |
300 | lp->lkf, lp->flags); | 302 | lp->cur, lp->req, lp->lkf, lp->flags); |
301 | return LM_OUT_ERROR; | 303 | return LM_OUT_ERROR; |
302 | } | 304 | } |
303 | return LM_OUT_ASYNC; | 305 | return LM_OUT_ASYNC; |
@@ -338,8 +340,8 @@ void gdlm_cancel(lm_lock_t *lock) | |||
338 | if (test_bit(LFL_DLM_CANCEL, &lp->flags)) | 340 | if (test_bit(LFL_DLM_CANCEL, &lp->flags)) |
339 | return; | 341 | return; |
340 | 342 | ||
341 | log_info("gdlm_cancel %x,%llx flags %lx", | 343 | log_info("gdlm_cancel %x,%llx flags %lx", lp->lockname.ln_type, |
342 | lp->lockname.ln_type, lp->lockname.ln_number, lp->flags); | 344 | (unsigned long long)lp->lockname.ln_number, lp->flags); |
343 | 345 | ||
344 | spin_lock(&ls->async_lock); | 346 | spin_lock(&ls->async_lock); |
345 | if (!list_empty(&lp->delay_list)) { | 347 | if (!list_empty(&lp->delay_list)) { |
@@ -356,10 +358,10 @@ void gdlm_cancel(lm_lock_t *lock) | |||
356 | } | 358 | } |
357 | 359 | ||
358 | if (!test_bit(LFL_ACTIVE, &lp->flags) || | 360 | if (!test_bit(LFL_ACTIVE, &lp->flags) || |
359 | test_bit(LFL_DLM_UNLOCK, &lp->flags)) { | 361 | test_bit(LFL_DLM_UNLOCK, &lp->flags)) { |
360 | log_info("gdlm_cancel skip %x,%llx flags %lx", | 362 | log_info("gdlm_cancel skip %x,%llx flags %lx", |
361 | lp->lockname.ln_type, lp->lockname.ln_number, | 363 | lp->lockname.ln_type, |
362 | lp->flags); | 364 | (unsigned long long)lp->lockname.ln_number, lp->flags); |
363 | return; | 365 | return; |
364 | } | 366 | } |
365 | 367 | ||
@@ -372,7 +374,8 @@ void gdlm_cancel(lm_lock_t *lock) | |||
372 | NULL, lp); | 374 | NULL, lp); |
373 | 375 | ||
374 | log_info("gdlm_cancel rv %d %x,%llx flags %lx", error, | 376 | log_info("gdlm_cancel rv %d %x,%llx flags %lx", error, |
375 | lp->lockname.ln_type, lp->lockname.ln_number, lp->flags); | 377 | lp->lockname.ln_type, |
378 | (unsigned long long)lp->lockname.ln_number, lp->flags); | ||
376 | 379 | ||
377 | if (error == -EBUSY) | 380 | if (error == -EBUSY) |
378 | clear_bit(LFL_DLM_CANCEL, &lp->flags); | 381 | clear_bit(LFL_DLM_CANCEL, &lp->flags); |
@@ -448,8 +451,8 @@ static void unhold_null_lock(struct gdlm_lock *lp) | |||
448 | { | 451 | { |
449 | struct gdlm_lock *lpn = lp->hold_null; | 452 | struct gdlm_lock *lpn = lp->hold_null; |
450 | 453 | ||
451 | gdlm_assert(lpn, "%x,%llx", | 454 | gdlm_assert(lpn, "%x,%llx", lp->lockname.ln_type, |
452 | lp->lockname.ln_type, lp->lockname.ln_number); | 455 | (unsigned long long)lp->lockname.ln_number); |
453 | lpn->lksb.sb_lvbptr = NULL; | 456 | lpn->lksb.sb_lvbptr = NULL; |
454 | lpn->lvb = NULL; | 457 | lpn->lvb = NULL; |
455 | set_bit(LFL_UNLOCK_DELETE, &lpn->flags); | 458 | set_bit(LFL_UNLOCK_DELETE, &lpn->flags); |
diff --git a/fs/gfs2/locking/dlm/plock.c b/fs/gfs2/locking/dlm/plock.c index 86312d96147b..6adfb2d4fd8c 100644 --- a/fs/gfs2/locking/dlm/plock.c +++ b/fs/gfs2/locking/dlm/plock.c | |||
@@ -93,7 +93,8 @@ int gdlm_plock(lm_lockspace_t *lockspace, struct lm_lockname *name, | |||
93 | if (!rv) { | 93 | if (!rv) { |
94 | if (posix_lock_file_wait(file, fl) < 0) | 94 | if (posix_lock_file_wait(file, fl) < 0) |
95 | log_error("gdlm_plock: vfs lock error %x,%llx", | 95 | log_error("gdlm_plock: vfs lock error %x,%llx", |
96 | name->ln_type, name->ln_number); | 96 | name->ln_type, |
97 | (unsigned long long)name->ln_number); | ||
97 | } | 98 | } |
98 | 99 | ||
99 | kfree(op); | 100 | kfree(op); |
@@ -113,7 +114,7 @@ int gdlm_punlock(lm_lockspace_t *lockspace, struct lm_lockname *name, | |||
113 | 114 | ||
114 | if (posix_lock_file_wait(file, fl) < 0) | 115 | if (posix_lock_file_wait(file, fl) < 0) |
115 | log_error("gdlm_punlock: vfs unlock error %x,%llx", | 116 | log_error("gdlm_punlock: vfs unlock error %x,%llx", |
116 | name->ln_type, name->ln_number); | 117 | name->ln_type, (unsigned long long)name->ln_number); |
117 | 118 | ||
118 | op->info.optype = GDLM_PLOCK_OP_UNLOCK; | 119 | op->info.optype = GDLM_PLOCK_OP_UNLOCK; |
119 | op->info.pid = fl->fl_pid; | 120 | op->info.pid = fl->fl_pid; |
@@ -243,7 +244,7 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count, | |||
243 | wake_up(&recv_wq); | 244 | wake_up(&recv_wq); |
244 | else | 245 | else |
245 | printk(KERN_INFO "gdlm dev_write no op %x %llx\n", info.fsid, | 246 | printk(KERN_INFO "gdlm dev_write no op %x %llx\n", info.fsid, |
246 | info.number); | 247 | (unsigned long long)info.number); |
247 | return count; | 248 | return count; |
248 | } | 249 | } |
249 | 250 | ||