diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ocfs2/mmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c index 9581d190f6e1..77ebc2bc1cca 100644 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c | |||
@@ -147,6 +147,10 @@ static int ocfs2_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) | |||
147 | ret = ocfs2_inode_lock(inode, &di_bh, 1); | 147 | ret = ocfs2_inode_lock(inode, &di_bh, 1); |
148 | if (ret < 0) { | 148 | if (ret < 0) { |
149 | mlog_errno(ret); | 149 | mlog_errno(ret); |
150 | if (ret == -ENOMEM) | ||
151 | ret = VM_FAULT_OOM; | ||
152 | else | ||
153 | ret = VM_FAULT_SIGBUS; | ||
150 | goto out; | 154 | goto out; |
151 | } | 155 | } |
152 | 156 | ||