[PATCH] Fix possibly too long write in o2hb_setup_one_bio()
authorJan Kara <jack@suse.cz>
Wed, 10 Oct 2007 14:25:42 +0000 (16:25 +0200)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 6 Nov 2007 23:35:35 +0000 (15:35 -0800)
commitbc7e97cbdd4bef162e5772c74ee2cc4487a2d997
treecf35117281896022e70a4fd5655ccc2f0f8bfcf3
parent4e9563fd55ff4479f2b118d0757d121dd0cfc39c
[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 <jack@suse.cz>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/cluster/heartbeat.c