Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ff91cc9bb41b62bc4ea7d5ced396fabf97539df9
Commit:     ff91cc9bb41b62bc4ea7d5ced396fabf97539df9
Parent:     fa3742fa8545df20e54aa0953a1873cca3a9bd92
Author:     Steven Whitehouse <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 14 14:04:34 2007 +0000
Committer:  Steven Whitehouse <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 08:15:58 2008 +0000

    [GFS2] Fix log block mapper
    
    A missing offset in the calculation.
    
    Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
---
 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 69a583e..9164525 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to