Thread (18 messages) 18 messages, 4 authors, 2016-02-10

Re: [PATCH 2/3] mm: Convert vm_insert_pfn_prot to vmf_insert_pfn_prot

From: Matthew Wilcox <hidden>
Date: 2016-01-27 04:18:30
Also in: lkml

On Mon, Jan 25, 2016 at 09:35:36AM -0800, Andy Lutomirski wrote:
On Mon, Jan 25, 2016 at 9:25 AM, Matthew Wilcox
[off-list ref] wrote:
quoted
From: Matthew Wilcox <redacted>

Other than the name, the vmf_ version takes a pfn_t parameter, and
returns a VM_FAULT_ code suitable for returning from a fault handler.

This patch also prevents vm_insert_pfn() from returning -EBUSY.
This is a good thing as several callers handled it incorrectly (and
none intentionally treat -EBUSY as a different case from 0).

Signed-off-by: Matthew Wilcox <redacted>
This would be even nicer if you added vmf_insert_pfn as well :)
I've sent out patches adding it before ... my most recent attempt on
January 5th tied up with the DAX support for 1GB pages.  I'll keep
sending it until it sticks :-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help