aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-04 12:49:07 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-04 12:49:07 -0400
commitcd915493fce912f1bd838ee1250737ecf33b8fae (patch)
treee14ec6643de91f473edb26a89905e710596fe6bc /fs/gfs2/log.c
parenta91ea69ffd3f8a0b7139bfd44042ab384461e631 (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/log.c')
-rw-r--r--fs/gfs2/log.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 45ea3ec6f776..571389012874 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -62,7 +62,7 @@ unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct,
62void gfs2_ail1_start(struct gfs2_sbd *sdp, int flags) 62void gfs2_ail1_start(struct gfs2_sbd *sdp, int flags)
63{ 63{
64 struct list_head *head = &sdp->sd_ail1_list; 64 struct list_head *head = &sdp->sd_ail1_list;
65 uint64_t sync_gen; 65 u64 sync_gen;
66 struct list_head *first, *tmp; 66 struct list_head *first, *tmp;
67 struct gfs2_ail *first_ai, *ai; 67 struct gfs2_ail *first_ai, *ai;
68 68
@@ -205,10 +205,10 @@ void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
205 up_read(&sdp->sd_log_flush_lock); 205 up_read(&sdp->sd_log_flush_lock);
206} 206}
207 207
208static uint64_t log_bmap(struct gfs2_sbd *sdp, unsigned int lbn) 208static u64 log_bmap(struct gfs2_sbd *sdp, unsigned int lbn)
209{ 209{
210 int new = 0; 210 int new = 0;
211 uint64_t dbn; 211 u64 dbn;
212 int error; 212 int error;
213 int bdy; 213 int bdy;
214 214
@@ -287,7 +287,7 @@ static inline void log_incr_head(struct gfs2_sbd *sdp)
287 287
288struct buffer_head *gfs2_log_get_buf(struct gfs2_sbd *sdp) 288struct buffer_head *gfs2_log_get_buf(struct gfs2_sbd *sdp)
289{ 289{
290 uint64_t blkno = log_bmap(sdp, sdp->sd_log_flush_head); 290 u64 blkno = log_bmap(sdp, sdp->sd_log_flush_head);
291 struct gfs2_log_buf *lb; 291 struct gfs2_log_buf *lb;
292 struct buffer_head *bh; 292 struct buffer_head *bh;
293 293
@@ -317,7 +317,7 @@ struct buffer_head *gfs2_log_get_buf(struct gfs2_sbd *sdp)
317struct buffer_head *gfs2_log_fake_buf(struct gfs2_sbd *sdp, 317struct buffer_head *gfs2_log_fake_buf(struct gfs2_sbd *sdp,
318 struct buffer_head *real) 318 struct buffer_head *real)
319{ 319{
320 uint64_t blkno = log_bmap(sdp, sdp->sd_log_flush_head); 320 u64 blkno = log_bmap(sdp, sdp->sd_log_flush_head);
321 struct gfs2_log_buf *lb; 321 struct gfs2_log_buf *lb;
322 struct buffer_head *bh; 322 struct buffer_head *bh;
323 323
@@ -361,13 +361,13 @@ static void log_pull_tail(struct gfs2_sbd *sdp, unsigned int new_tail, int pull)
361 * Returns: the initialized log buffer descriptor 361 * Returns: the initialized log buffer descriptor
362 */ 362 */
363 363
364static void log_write_header(struct gfs2_sbd *sdp, uint32_t flags, int pull) 364static void log_write_header(struct gfs2_sbd *sdp, u32 flags, int pull)
365{ 365{
366 uint64_t blkno = log_bmap(sdp, sdp->sd_log_flush_head); 366 u64 blkno = log_bmap(sdp, sdp->sd_log_flush_head);
367 struct buffer_head *bh; 367 struct buffer_head *bh;
368 struct gfs2_log_header *lh; 368 struct gfs2_log_header *lh;
369 unsigned int tail; 369 unsigned int tail;
370 uint32_t hash; 370 u32 hash;
371 371
372 /* printk(KERN_INFO "log write header start (flags=%08x, pull=%d)\n", flags, pull); */ 372 /* printk(KERN_INFO "log write header start (flags=%08x, pull=%d)\n", flags, pull); */
373 373
@@ -523,7 +523,7 @@ static void log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
523 reserved += sdp->sd_log_commited_buf; 523 reserved += sdp->sd_log_commited_buf;
524 if (sdp->sd_log_commited_revoke) 524 if (sdp->sd_log_commited_revoke)
525 reserved += gfs2_struct2blk(sdp, sdp->sd_log_commited_revoke, 525 reserved += gfs2_struct2blk(sdp, sdp->sd_log_commited_revoke,
526 sizeof(uint64_t)); 526 sizeof(u64));
527 if (reserved) 527 if (reserved)
528 reserved++; 528 reserved++;
529 529