diff options
author | Bob Peterson <rpeterso@redhat.com> | 2012-04-12 08:41:43 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-04-24 11:44:32 -0400 |
commit | 9598d25ed9b2fc0c36ed47e759c998303fd89503 (patch) | |
tree | 9b3602b637b1c6344b4defaa52bb8e4dcae32b43 /fs/gfs2 | |
parent | 886b1416752d7b00fd04468a7c3f036699bddc31 (diff) |
GFS2: Change variable blk to biblk
In the resource group code, we have no less than three different
kinds of block references: block relative to the file system (u64),
block relative to the rgrp (u32), and block relative to the bitmap.
This is a small step to making the code more readable; it renames
variable blk to biblk to solidify in my mind that it's relative to
the bitmap and nothing else.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/rgrp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 5968eae9cf8f..7a1cf67d7db2 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -1297,7 +1297,7 @@ static u32 rgblk_search(struct gfs2_rgrpd *rgd, u32 goal, unsigned char state, | |||
1297 | { | 1297 | { |
1298 | struct gfs2_bitmap *bi = NULL; | 1298 | struct gfs2_bitmap *bi = NULL; |
1299 | const u32 length = rgd->rd_length; | 1299 | const u32 length = rgd->rd_length; |
1300 | u32 blk = BFITNOENT; | 1300 | u32 biblk = BFITNOENT; |
1301 | unsigned int buf, x; | 1301 | unsigned int buf, x; |
1302 | const u8 *buffer = NULL; | 1302 | const u8 *buffer = NULL; |
1303 | 1303 | ||
@@ -1334,8 +1334,8 @@ do_search: | |||
1334 | if (state != GFS2_BLKST_UNLINKED && bi->bi_clone) | 1334 | if (state != GFS2_BLKST_UNLINKED && bi->bi_clone) |
1335 | buffer = bi->bi_clone + bi->bi_offset; | 1335 | buffer = bi->bi_clone + bi->bi_offset; |
1336 | 1336 | ||
1337 | blk = gfs2_bitfit(buffer, bi->bi_len, goal, state); | 1337 | biblk = gfs2_bitfit(buffer, bi->bi_len, goal, state); |
1338 | if (blk != BFITNOENT) | 1338 | if (biblk != BFITNOENT) |
1339 | break; | 1339 | break; |
1340 | 1340 | ||
1341 | if ((goal == 0) && (state == GFS2_BLKST_FREE)) | 1341 | if ((goal == 0) && (state == GFS2_BLKST_FREE)) |
@@ -1348,10 +1348,10 @@ skip: | |||
1348 | goal = 0; | 1348 | goal = 0; |
1349 | } | 1349 | } |
1350 | 1350 | ||
1351 | if (blk != BFITNOENT) | 1351 | if (biblk != BFITNOENT) |
1352 | *rbi = bi; | 1352 | *rbi = bi; |
1353 | 1353 | ||
1354 | return blk; | 1354 | return biblk; |
1355 | } | 1355 | } |
1356 | 1356 | ||
1357 | /** | 1357 | /** |