From: Tao Ma Date: Sat, 17 Jul 2010 13:45:49 +0000 (+0800) Subject: ocfs2: make __ocfs2_page_mkwrite handle file end properly. X-Git-Tag: v2.6.36-rc4~68^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f63afdb2c32db850fa1bfccf84643a8885cbeb61;p=pandora-kernel.git ocfs2: make __ocfs2_page_mkwrite handle file end properly. __ocfs2_page_mkwrite now is broken in handling file end. 1. the last page should be the page contains i_size - 1. 2. the len in the last page is also calculated wrong. So change them accordingly. Acked-by: Mark Fasheh Signed-off-by: Tao Ma --- Reading git-diff-tree failed