Skip to content
Commit 5cffff9e authored by Wengang Wang's avatar Wengang Wang Committed by Sunil Mushran
Browse files

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: default avatarWengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
parent a035bff6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment