提交 ff91cc9b 编写于 作者: S Steven Whitehouse

[GFS2] Fix log block mapper

A missing offset in the calculation.
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
上级 fa3742fa
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册