diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 12:00:42 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 12:00:42 -0500 |
commit | 568f4c9659a2225b0d29cf86feecbcf25c9045c8 (patch) | |
tree | 8ec0fee12313f88a195e0b90924f6b7633ba29f1 /fs/gfs2/bmap.c | |
parent | 3a8fe9be6c9794e55ac2253eab91d42b28a9dab6 (diff) |
[GFS2] 80 Column audit of GFS2
Requested by:
Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 10 |
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 | ||
316 | static void find_metapath(struct gfs2_inode *ip, uint64_t block, struct metapath *mp) | 319 | static 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; |