projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa3742f
)
[GFS2] Fix log block mapper
author
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 14 Dec 2007 14:04:34 +0000
(14:04 +0000)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 25 Jan 2008 08:15:58 +0000
(08:15 +0000)
A missing offset in the calculation.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/log.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/log.c
b/fs/gfs2/log.c
index 69a583ec43c7cf2f0237d50892cbb94b0754a88f..91645259e135922e876cacf8743d45205f14af3e 100644
(file)
--- 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;