Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bc7e97cbdd4bef162e5772c74ee2cc4487a2d997
Commit:     bc7e97cbdd4bef162e5772c74ee2cc4487a2d997
Parent:     4e9563fd55ff4479f2b118d0757d121dd0cfc39c
Author:     Jan Kara <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 10 16:25:42 2007 +0200
Committer:  Mark Fasheh <[EMAIL PROTECTED]>
CommitDate: Tue Nov 6 15:35:35 2007 -0800

    [PATCH] Fix possibly too long write in o2hb_setup_one_bio()
    
    We should subtract start of our IO from PAGE_CACHE_SIZE to get the right
    length of the write we want to perform.
    
    Signed-off-by: Jan Kara <[EMAIL PROTECTED]>
    Signed-off-by: Mark Fasheh <[EMAIL PROTECTED]>
---
 fs/ocfs2/cluster/heartbeat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c
index 9cc7c04..f02ccb3 100644
--- a/fs/ocfs2/cluster/heartbeat.c
+++ b/fs/ocfs2/cluster/heartbeat.c
@@ -267,7 +267,7 @@ static struct bio *o2hb_setup_one_bio(struct o2hb_region 
*reg,
                current_page = cs / spp;
                page = reg->hr_slot_data[current_page];
 
-               vec_len = min(PAGE_CACHE_SIZE,
+               vec_len = min(PAGE_CACHE_SIZE - vec_start,
                              (max_slots-cs) * (PAGE_CACHE_SIZE/spp) );
 
                mlog(ML_HB_BIO, "page %d, vec_len = %u, vec_start = %u\n",
-
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