From: Wengang Wang Date: Sun, 24 Jul 2011 17:36:54 +0000 (-0700) Subject: ocfs2: Fix ocfs2_page_mkwrite() X-Git-Tag: v3.2-rc4~1^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cffff9e29866a3de98c2c25135b3199491f93b0;p=pandora-kernel.git ocfs2: Fix ocfs2_page_mkwrite() This patch address two shortcomings in ocfs2_page_mkwrite(): 1. Makes the function return better VM_FAULT_* errors. 2. It handles a error that is triggered when a page is dropped from the mapping due to memory pressure. This patch locks the page to prevent that. [Patch was cleaned up by Sunil Mushran.] Signed-off-by: Wengang Wang Signed-off-by: Sunil Mushran --- Reading git-diff-tree failed