aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/meta_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r--fs/gfs2/meta_io.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 3f6da00e2f59..5b10379c20eb 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -213,7 +213,7 @@ void gfs2_ail_empty_gl(struct gfs2_glock *gl)
213 struct list_head *head = &gl->gl_ail_list; 213 struct list_head *head = &gl->gl_ail_list;
214 struct gfs2_bufdata *bd; 214 struct gfs2_bufdata *bd;
215 struct buffer_head *bh; 215 struct buffer_head *bh;
216 uint64_t blkno; 216 u64 blkno;
217 int error; 217 int error;
218 218
219 blocks = atomic_read(&gl->gl_ail_count); 219 blocks = atomic_read(&gl->gl_ail_count);
@@ -303,7 +303,7 @@ void gfs2_meta_sync(struct gfs2_glock *gl, int flags)
303 */ 303 */
304 304
305static struct buffer_head *getbuf(struct gfs2_sbd *sdp, struct inode *aspace, 305static struct buffer_head *getbuf(struct gfs2_sbd *sdp, struct inode *aspace,
306 uint64_t blkno, int create) 306 u64 blkno, int create)
307{ 307{
308 struct page *page; 308 struct page *page;
309 struct buffer_head *bh; 309 struct buffer_head *bh;
@@ -366,7 +366,7 @@ static void meta_prep_new(struct buffer_head *bh)
366 * Returns: The buffer 366 * Returns: The buffer
367 */ 367 */
368 368
369struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, uint64_t blkno) 369struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno)
370{ 370{
371 struct buffer_head *bh; 371 struct buffer_head *bh;
372 bh = getbuf(gl->gl_sbd, gl->gl_aspace, blkno, CREATE); 372 bh = getbuf(gl->gl_sbd, gl->gl_aspace, blkno, CREATE);
@@ -384,7 +384,7 @@ struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, uint64_t blkno)
384 * Returns: errno 384 * Returns: errno
385 */ 385 */
386 386
387int gfs2_meta_read(struct gfs2_glock *gl, uint64_t blkno, int flags, 387int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
388 struct buffer_head **bhp) 388 struct buffer_head **bhp)
389{ 389{
390 int error; 390 int error;
@@ -549,7 +549,7 @@ void gfs2_unpin(struct gfs2_sbd *sdp, struct buffer_head *bh,
549 * 549 *
550 */ 550 */
551 551
552void gfs2_meta_wipe(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen) 552void gfs2_meta_wipe(struct gfs2_inode *ip, u64 bstart, u32 blen)
553{ 553{
554 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); 554 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
555 struct inode *aspace = ip->i_gl->gl_aspace; 555 struct inode *aspace = ip->i_gl->gl_aspace;
@@ -573,7 +573,7 @@ void gfs2_meta_wipe(struct gfs2_inode *ip, uint64_t bstart, uint32_t blen)
573 if (bd) { 573 if (bd) {
574 gfs2_log_lock(sdp); 574 gfs2_log_lock(sdp);
575 if (bd->bd_ail) { 575 if (bd->bd_ail) {
576 uint64_t blkno = bh->b_blocknr; 576 u64 blkno = bh->b_blocknr;
577 bd->bd_ail = NULL; 577 bd->bd_ail = NULL;
578 list_del(&bd->bd_ail_st_list); 578 list_del(&bd->bd_ail_st_list);
579 list_del(&bd->bd_ail_gl_list); 579 list_del(&bd->bd_ail_gl_list);
@@ -637,7 +637,7 @@ void gfs2_meta_cache_flush(struct gfs2_inode *ip)
637 * Returns: errno 637 * Returns: errno
638 */ 638 */
639 639
640int gfs2_meta_indirect_buffer(struct gfs2_inode *ip, int height, uint64_t num, 640int gfs2_meta_indirect_buffer(struct gfs2_inode *ip, int height, u64 num,
641 int new, struct buffer_head **bhp) 641 int new, struct buffer_head **bhp)
642{ 642{
643 struct buffer_head *bh, **bh_slot = ip->i_cache + height; 643 struct buffer_head *bh, **bh_slot = ip->i_cache + height;
@@ -711,12 +711,12 @@ int gfs2_meta_indirect_buffer(struct gfs2_inode *ip, int height, uint64_t num,
711 * 711 *
712 */ 712 */
713 713
714void gfs2_meta_ra(struct gfs2_glock *gl, uint64_t dblock, uint32_t extlen) 714void gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen)
715{ 715{
716 struct gfs2_sbd *sdp = gl->gl_sbd; 716 struct gfs2_sbd *sdp = gl->gl_sbd;
717 struct inode *aspace = gl->gl_aspace; 717 struct inode *aspace = gl->gl_aspace;
718 struct buffer_head *first_bh, *bh; 718 struct buffer_head *first_bh, *bh;
719 uint32_t max_ra = gfs2_tune_get(sdp, gt_max_readahead) >> 719 u32 max_ra = gfs2_tune_get(sdp, gt_max_readahead) >>
720 sdp->sd_sb.sb_bsize_shift; 720 sdp->sd_sb.sb_bsize_shift;
721 int error; 721 int error;
722 722