Skip to content

Commit

Permalink
[GFS2] Fix log block mapper
Browse files Browse the repository at this point in the history
A missing offset in the calculation.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Jan 25, 2008
1 parent fa3742f commit ff91cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff91cc9

Please sign in to comment.