summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-16 13:37:42 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-16 13:37:42 -0800
commit28f47a6b7c78aca4ad9991010502e650e8c80b04 (patch)
tree38e920e2e2333eacf3af36324e255ed79fea44f6
parentaa7f4f0af8027e72914a12d12c6799e9243dfa69 (diff)
downloadsyslinux-28f47a6b7c78aca4ad9991010502e650e8c80b04.tar.gz
ext2: fix confusion between logical and physical block numbers
Fix a minor confusion between logical and physical block numbers in the new iterative bmap implementation. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/fs/ext2/bmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/ext2/bmap.c b/core/fs/ext2/bmap.c
index 589a372b..e25759f6 100644
--- a/core/fs/ext2/bmap.c
+++ b/core/fs/ext2/bmap.c
@@ -91,10 +91,10 @@ static block_t bmap_indirect(struct fs_info *fs, uint32_t start,
while (levels--) {
blk = get_cache(fs->fs_dev, start);
index = (block >> (levels * addr_shift)) & addr_mask;
- block = blk[index];
+ start = blk[index];
}
- return block;
+ return start;
}
/*