]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: Fix ocfs2_page_mkwrite()
authorWengang Wang <wen.gang.wang@oracle.com>
Sun, 24 Jul 2011 17:36:54 +0000 (10:36 -0700)
committerXiaowei.Hu <xiaowei.hu@oracle.com>
Wed, 29 Aug 2012 06:08:21 +0000 (14:08 +0800)
commit99c8a1745d5545688ebbd0787503b2d176bcac4b
tree7e11eae38173d313d7fb4bb3dd13a0e392aa0426
parent567ca46abf897b8ad63373fadff4a59eddf4c01f
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 <wen.gang.wang@oracle.com>
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
(cherry picked from commit 5cffff9e29866a3de98c2c25135b3199491f93b0)

Signed-off-by: Xiaowei.Hu <xiaowei.hu@oracle.com>
fs/ocfs2/aops.c
fs/ocfs2/mmap.c