From: Steven Whitehouse Date: Fri, 14 Dec 2007 14:04:34 +0000 (+0000) Subject: [GFS2] Fix log block mapper X-Git-Tag: v2.6.25-rc1~1241^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ff91cc9bb41b62bc4ea7d5ced396fabf97539df9;p=linux-2.6-omap-h63xx.git [GFS2] Fix log block mapper A missing offset in the calculation. Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index 69a583ec43c..91645259e13 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c @@ -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;