Skip to content
Snippets Groups Projects
Commit f63afdb2 authored by Tao Ma's avatar Tao Ma
Browse files

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: default avatarMark Fasheh <mfasheh@suse.com>
Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
parent f5ce5a08
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment