Commit ff91cc9b authored by Steven Whitehouse's avatar Steven Whitehouse

[GFS2] Fix log block mapper

A missing offset in the calculation.
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent fa3742fa
...@@ -343,7 +343,7 @@ static u64 log_bmap(struct gfs2_sbd *sdp, unsigned int lbn) ...@@ -343,7 +343,7 @@ static u64 log_bmap(struct gfs2_sbd *sdp, unsigned int lbn)
list_for_each_entry(je, &sdp->sd_jdesc->extent_list, extent_list) { list_for_each_entry(je, &sdp->sd_jdesc->extent_list, extent_list) {
if (lbn >= je->lblock && lbn < je->lblock + je->blocks) if (lbn >= je->lblock && lbn < je->lblock + je->blocks)
return je->dblock + lbn; return je->dblock + lbn - je->lblock;
} }
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment