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/inode.c | |
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/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 1aaaaa1cc8c3..f683a400b006 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -311,7 +311,7 @@ int gfs2_change_nlink(struct gfs2_inode *ip, int diff) | |||
311 | { | 311 | { |
312 | struct gfs2_sbd *sdp = ip->i_inode.i_sb->s_fs_info; | 312 | struct gfs2_sbd *sdp = ip->i_inode.i_sb->s_fs_info; |
313 | struct buffer_head *dibh; | 313 | struct buffer_head *dibh; |
314 | uint32_t nlink; | 314 | u32 nlink; |
315 | int error; | 315 | int error; |
316 | 316 | ||
317 | BUG_ON(ip->i_di.di_nlink != ip->i_inode.i_nlink); | 317 | BUG_ON(ip->i_di.di_nlink != ip->i_inode.i_nlink); |
@@ -428,7 +428,7 @@ out: | |||
428 | return inode; | 428 | return inode; |
429 | } | 429 | } |
430 | 430 | ||
431 | static int pick_formal_ino_1(struct gfs2_sbd *sdp, uint64_t *formal_ino) | 431 | static int pick_formal_ino_1(struct gfs2_sbd *sdp, u64 *formal_ino) |
432 | { | 432 | { |
433 | struct gfs2_inode *ip = GFS2_I(sdp->sd_ir_inode); | 433 | struct gfs2_inode *ip = GFS2_I(sdp->sd_ir_inode); |
434 | struct buffer_head *bh; | 434 | struct buffer_head *bh; |
@@ -469,7 +469,7 @@ static int pick_formal_ino_1(struct gfs2_sbd *sdp, uint64_t *formal_ino) | |||
469 | return 1; | 469 | return 1; |
470 | } | 470 | } |
471 | 471 | ||
472 | static int pick_formal_ino_2(struct gfs2_sbd *sdp, uint64_t *formal_ino) | 472 | static int pick_formal_ino_2(struct gfs2_sbd *sdp, u64 *formal_ino) |
473 | { | 473 | { |
474 | struct gfs2_inode *ip = GFS2_I(sdp->sd_ir_inode); | 474 | struct gfs2_inode *ip = GFS2_I(sdp->sd_ir_inode); |
475 | struct gfs2_inode *m_ip = GFS2_I(sdp->sd_inum_inode); | 475 | struct gfs2_inode *m_ip = GFS2_I(sdp->sd_inum_inode); |
@@ -495,13 +495,13 @@ static int pick_formal_ino_2(struct gfs2_sbd *sdp, uint64_t *formal_ino) | |||
495 | 495 | ||
496 | if (!ir.ir_length) { | 496 | if (!ir.ir_length) { |
497 | struct buffer_head *m_bh; | 497 | struct buffer_head *m_bh; |
498 | uint64_t x, y; | 498 | u64 x, y; |
499 | 499 | ||
500 | error = gfs2_meta_inode_buffer(m_ip, &m_bh); | 500 | error = gfs2_meta_inode_buffer(m_ip, &m_bh); |
501 | if (error) | 501 | if (error) |
502 | goto out_brelse; | 502 | goto out_brelse; |
503 | 503 | ||
504 | x = *(uint64_t *)(m_bh->b_data + sizeof(struct gfs2_dinode)); | 504 | x = *(u64 *)(m_bh->b_data + sizeof(struct gfs2_dinode)); |
505 | x = y = be64_to_cpu(x); | 505 | x = y = be64_to_cpu(x); |
506 | ir.ir_start = x; | 506 | ir.ir_start = x; |
507 | ir.ir_length = GFS2_INUM_QUANTUM; | 507 | ir.ir_length = GFS2_INUM_QUANTUM; |
@@ -510,7 +510,7 @@ static int pick_formal_ino_2(struct gfs2_sbd *sdp, uint64_t *formal_ino) | |||
510 | gfs2_consist_inode(m_ip); | 510 | gfs2_consist_inode(m_ip); |
511 | x = cpu_to_be64(x); | 511 | x = cpu_to_be64(x); |
512 | gfs2_trans_add_bh(m_ip->i_gl, m_bh, 1); | 512 | gfs2_trans_add_bh(m_ip->i_gl, m_bh, 1); |
513 | *(uint64_t *)(m_bh->b_data + sizeof(struct gfs2_dinode)) = x; | 513 | *(u64 *)(m_bh->b_data + sizeof(struct gfs2_dinode)) = x; |
514 | 514 | ||
515 | brelse(m_bh); | 515 | brelse(m_bh); |
516 | } | 516 | } |
@@ -531,7 +531,7 @@ out: | |||
531 | return error; | 531 | return error; |
532 | } | 532 | } |
533 | 533 | ||
534 | static int pick_formal_ino(struct gfs2_sbd *sdp, uint64_t *inum) | 534 | static int pick_formal_ino(struct gfs2_sbd *sdp, u64 *inum) |
535 | { | 535 | { |
536 | int error; | 536 | int error; |
537 | 537 | ||
@@ -577,9 +577,9 @@ static int create_ok(struct gfs2_inode *dip, const struct qstr *name, | |||
577 | return error; | 577 | return error; |
578 | } | 578 | } |
579 | 579 | ||
580 | if (dip->i_di.di_entries == (uint32_t)-1) | 580 | if (dip->i_di.di_entries == (u32)-1) |
581 | return -EFBIG; | 581 | return -EFBIG; |
582 | if (S_ISDIR(mode) && dip->i_di.di_nlink == (uint32_t)-1) | 582 | if (S_ISDIR(mode) && dip->i_di.di_nlink == (u32)-1) |
583 | return -EMLINK; | 583 | return -EMLINK; |
584 | 584 | ||
585 | return 0; | 585 | return 0; |
@@ -1131,7 +1131,7 @@ int gfs2_glock_nq_atime(struct gfs2_holder *gh) | |||
1131 | struct gfs2_glock *gl = gh->gh_gl; | 1131 | struct gfs2_glock *gl = gh->gh_gl; |
1132 | struct gfs2_sbd *sdp = gl->gl_sbd; | 1132 | struct gfs2_sbd *sdp = gl->gl_sbd; |
1133 | struct gfs2_inode *ip = gl->gl_object; | 1133 | struct gfs2_inode *ip = gl->gl_object; |
1134 | int64_t curtime, quantum = gfs2_tune_get(sdp, gt_atime_quantum); | 1134 | s64 curtime, quantum = gfs2_tune_get(sdp, gt_atime_quantum); |
1135 | unsigned int state; | 1135 | unsigned int state; |
1136 | int flags; | 1136 | int flags; |
1137 | int error; | 1137 | int error; |