aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 4efcd8a39e98..e132d8a41008 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -129,7 +129,8 @@ int gfs2_unstuff_dinode(struct gfs2_inode *ip, gfs2_unstuffer_t unstuffer,
129 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); 129 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode));
130 130
131 if (ip->i_di.di_size) { 131 if (ip->i_di.di_size) {
132 *(uint64_t *)(dibh->b_data + sizeof(struct gfs2_dinode)) = cpu_to_be64(block); 132 *(uint64_t *)(dibh->b_data + sizeof(struct gfs2_dinode)) =
133 cpu_to_be64(block);
133 ip->i_di.di_blocks++; 134 ip->i_di.di_blocks++;
134 } 135 }
135 136
@@ -241,7 +242,9 @@ static int build_height(struct gfs2_inode *ip, int height)
241 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); 242 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode));
242 243
243 if (new_block) { 244 if (new_block) {
244 *(uint64_t *)(dibh->b_data + sizeof(struct gfs2_dinode)) = cpu_to_be64(block); 245 *(uint64_t *)(dibh->b_data +
246 sizeof(struct gfs2_dinode)) =
247 cpu_to_be64(block);
245 ip->i_di.di_blocks++; 248 ip->i_di.di_blocks++;
246 } 249 }
247 250
@@ -313,7 +316,8 @@ static int build_height(struct gfs2_inode *ip, int height)
313 * 316 *
314 */ 317 */
315 318
316static void find_metapath(struct gfs2_inode *ip, uint64_t block, struct metapath *mp) 319static void find_metapath(struct gfs2_inode *ip, uint64_t block,
320 struct metapath *mp)
317{ 321{
318 struct gfs2_sbd *sdp = ip->i_sbd; 322 struct gfs2_sbd *sdp = ip->i_sbd;
319 uint64_t b = block; 323 uint64_t b = block;