[PATCH 11/13] mm: extend prefault helpers to fault in more than PAGE_SIZE

2011-11-06 Thread Chris Wilson
On Sun, 6 Nov 2011 20:13:58 +0100, Daniel Vetter wrote: > drm/i915 wants to read/write more than one page in its fastpath > and hence needs to prefault more than PAGE_SIZE bytes. > > I've checked the callsites and they all already clamp size when > calling fault_in_pages_* to the same as for th

[PATCH 11/13] mm: extend prefault helpers to fault in more than PAGE_SIZE

2011-11-06 Thread Daniel Vetter
drm/i915 wants to read/write more than one page in its fastpath and hence needs to prefault more than PAGE_SIZE bytes. I've checked the callsites and they all already clamp size when calling fault_in_pages_* to the same as for the subsequent __copy_to|from_user and hence don't rely on the implicit

Re: [PATCH 11/13] mm: extend prefault helpers to fault in more than PAGE_SIZE

2011-11-06 Thread Chris Wilson
On Sun, 6 Nov 2011 20:13:58 +0100, Daniel Vetter wrote: > drm/i915 wants to read/write more than one page in its fastpath > and hence needs to prefault more than PAGE_SIZE bytes. > > I've checked the callsites and they all already clamp size when > calling fault_in_pages_* to the same as for th

[PATCH 11/13] mm: extend prefault helpers to fault in more than PAGE_SIZE

2011-11-06 Thread Daniel Vetter
drm/i915 wants to read/write more than one page in its fastpath and hence needs to prefault more than PAGE_SIZE bytes. I've checked the callsites and they all already clamp size when calling fault_in_pages_* to the same as for the subsequent __copy_to|from_user and hence don't rely on the implicit