summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2007-12-14 14:04:34 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2008-01-25 08:15:58 +0000
commitff91cc9bb41b62bc4ea7d5ced396fabf97539df9 (patch)
tree8e14975bba539c796cddb30853d76f0a0c2d060e /fs/gfs2/log.c
parentfa3742fa8545df20e54aa0953a1873cca3a9bd92 (diff)
downloadlinux-ff91cc9bb41b62bc4ea7d5ced396fabf97539df9.tar.bz2
[GFS2] Fix log block mapper
A missing offset in the calculation. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 69a583ec43c7..91645259e135 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;