mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[GFS2] Fix log block mapper
A missing offset in the calculation. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
parent
fa3742fa85
commit
ff91cc9bb4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
if (lbn >= je->lblock && lbn < je->lblock + je->blocks)
|
||||
return je->dblock + lbn;
|
||||
return je->dblock + lbn - je->lblock;
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue