]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: make __ocfs2_page_mkwrite handle file end properly.
authorTao Ma <tao.ma@oracle.com>
Sat, 17 Jul 2010 13:45:49 +0000 (21:45 +0800)
committerTao Ma <tao.ma@oracle.com>
Wed, 8 Sep 2010 06:25:55 +0000 (14:25 +0800)
commit359258b4b4392c6ddda61c475cef0e067b420dd3
tree051bd8feb6eeb546d562e325157526dbc1018e49
parent59ae4a4e1412aff3b1eb7c1da7424b0be9d8e323
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 <mfasheh@suse.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/mmap.c