diff options
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r-- | fs/gfs2/log.c | 2 |
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) | |||
343 | 343 | ||
344 | list_for_each_entry(je, &sdp->sd_jdesc->extent_list, extent_list) { | 344 | list_for_each_entry(je, &sdp->sd_jdesc->extent_list, extent_list) { |
345 | if (lbn >= je->lblock && lbn < je->lblock + je->blocks) | 345 | if (lbn >= je->lblock && lbn < je->lblock + je->blocks) |
346 | return je->dblock + lbn; | 346 | return je->dblock + lbn - je->lblock; |
347 | } | 347 | } |
348 | 348 | ||
349 | return -1; | 349 | return -1; |