diff options
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index bece3620f1c0..967cbc68195a 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -124,7 +124,7 @@ int gfs2_unstuff_dinode(struct gfs2_inode *ip, gfs2_unstuffer_t unstuffer, | |||
124 | 124 | ||
125 | /* Set up the pointer to the new block */ | 125 | /* Set up the pointer to the new block */ |
126 | 126 | ||
127 | gfs2_trans_add_bh(ip->i_gl, dibh); | 127 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
128 | 128 | ||
129 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); | 129 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); |
130 | 130 | ||
@@ -223,7 +223,7 @@ static int build_height(struct gfs2_inode *ip, int height) | |||
223 | block = gfs2_alloc_meta(ip); | 223 | block = gfs2_alloc_meta(ip); |
224 | 224 | ||
225 | bh = gfs2_meta_new(ip->i_gl, block); | 225 | bh = gfs2_meta_new(ip->i_gl, block); |
226 | gfs2_trans_add_bh(ip->i_gl, bh); | 226 | gfs2_trans_add_bh(ip->i_gl, bh, 1); |
227 | gfs2_metatype_set(bh, | 227 | gfs2_metatype_set(bh, |
228 | GFS2_METATYPE_IN, | 228 | GFS2_METATYPE_IN, |
229 | GFS2_FORMAT_IN); | 229 | GFS2_FORMAT_IN); |
@@ -236,7 +236,7 @@ static int build_height(struct gfs2_inode *ip, int height) | |||
236 | 236 | ||
237 | /* Set up the new direct pointer and write it out to disk */ | 237 | /* Set up the new direct pointer and write it out to disk */ |
238 | 238 | ||
239 | gfs2_trans_add_bh(ip->i_gl, dibh); | 239 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
240 | 240 | ||
241 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); | 241 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); |
242 | 242 | ||
@@ -382,7 +382,7 @@ static void lookup_block(struct gfs2_inode *ip, struct buffer_head *bh, | |||
382 | else | 382 | else |
383 | *block = gfs2_alloc_meta(ip); | 383 | *block = gfs2_alloc_meta(ip); |
384 | 384 | ||
385 | gfs2_trans_add_bh(ip->i_gl, bh); | 385 | gfs2_trans_add_bh(ip->i_gl, bh, 1); |
386 | 386 | ||
387 | *ptr = cpu_to_be64(*block); | 387 | *ptr = cpu_to_be64(*block); |
388 | ip->i_di.di_blocks++; | 388 | ip->i_di.di_blocks++; |
@@ -490,7 +490,7 @@ int gfs2_block_map(struct gfs2_inode *ip, uint64_t lblock, int *new, | |||
490 | if (*new) { | 490 | if (*new) { |
491 | error = gfs2_meta_inode_buffer(ip, &bh); | 491 | error = gfs2_meta_inode_buffer(ip, &bh); |
492 | if (!error) { | 492 | if (!error) { |
493 | gfs2_trans_add_bh(ip->i_gl, bh); | 493 | gfs2_trans_add_bh(ip->i_gl, bh, 1); |
494 | gfs2_dinode_out(&ip->i_di, bh->b_data); | 494 | gfs2_dinode_out(&ip->i_di, bh->b_data); |
495 | brelse(bh); | 495 | brelse(bh); |
496 | } | 496 | } |
@@ -672,8 +672,8 @@ static int do_strip(struct gfs2_inode *ip, struct buffer_head *dibh, | |||
672 | 672 | ||
673 | down_write(&ip->i_rw_mutex); | 673 | down_write(&ip->i_rw_mutex); |
674 | 674 | ||
675 | gfs2_trans_add_bh(ip->i_gl, dibh); | 675 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
676 | gfs2_trans_add_bh(ip->i_gl, bh); | 676 | gfs2_trans_add_bh(ip->i_gl, bh, 1); |
677 | 677 | ||
678 | bstart = 0; | 678 | bstart = 0; |
679 | blen = 0; | 679 | blen = 0; |
@@ -795,7 +795,7 @@ static int do_grow(struct gfs2_inode *ip, uint64_t size) | |||
795 | if (error) | 795 | if (error) |
796 | goto out_end_trans; | 796 | goto out_end_trans; |
797 | 797 | ||
798 | gfs2_trans_add_bh(ip->i_gl, dibh); | 798 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
799 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 799 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
800 | brelse(dibh); | 800 | brelse(dibh); |
801 | 801 | ||
@@ -833,7 +833,7 @@ static int truncator_journaled(struct gfs2_inode *ip, uint64_t size) | |||
833 | if (error) | 833 | if (error) |
834 | return error; | 834 | return error; |
835 | 835 | ||
836 | gfs2_trans_add_bh(ip->i_gl, bh); | 836 | gfs2_trans_add_bh(ip->i_gl, bh, 1); |
837 | gfs2_buffer_clear_tail(bh, sizeof(struct gfs2_meta_header) + off); | 837 | gfs2_buffer_clear_tail(bh, sizeof(struct gfs2_meta_header) + off); |
838 | 838 | ||
839 | brelse(bh); | 839 | brelse(bh); |
@@ -861,7 +861,7 @@ static int trunc_start(struct gfs2_inode *ip, uint64_t size, | |||
861 | if (gfs2_is_stuffed(ip)) { | 861 | if (gfs2_is_stuffed(ip)) { |
862 | ip->i_di.di_size = size; | 862 | ip->i_di.di_size = size; |
863 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 863 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); |
864 | gfs2_trans_add_bh(ip->i_gl, dibh); | 864 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
865 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 865 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
866 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + size); | 866 | gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode) + size); |
867 | error = 1; | 867 | error = 1; |
@@ -879,7 +879,7 @@ static int trunc_start(struct gfs2_inode *ip, uint64_t size, | |||
879 | ip->i_di.di_size = size; | 879 | ip->i_di.di_size = size; |
880 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 880 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); |
881 | ip->i_di.di_flags |= GFS2_DIF_TRUNC_IN_PROG; | 881 | ip->i_di.di_flags |= GFS2_DIF_TRUNC_IN_PROG; |
882 | gfs2_trans_add_bh(ip->i_gl, dibh); | 882 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
883 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 883 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
884 | } | 884 | } |
885 | } | 885 | } |
@@ -957,7 +957,7 @@ static int trunc_end(struct gfs2_inode *ip) | |||
957 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 957 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); |
958 | ip->i_di.di_flags &= ~GFS2_DIF_TRUNC_IN_PROG; | 958 | ip->i_di.di_flags &= ~GFS2_DIF_TRUNC_IN_PROG; |
959 | 959 | ||
960 | gfs2_trans_add_bh(ip->i_gl, dibh); | 960 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
961 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 961 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
962 | brelse(dibh); | 962 | brelse(dibh); |
963 | 963 | ||