aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2012-03-25 19:47:41 +0200
committerDaniel Vetter <[email protected]>2012-03-27 13:36:30 +0200
commitf56f821feb7b36223f309e0ec05986bb137ce418 (patch)
tree5d6ae677300d4ea171bad39ba8f7aa65cf24c6d9 /include/linux/debugobjects.h
parentd174bd6472d79fb5603dc8bd35e5184d83194ea8 (diff)
mm: extend prefault helpers to fault in more than PAGE_SIZE
drm/i915 wants to read/write more than one page in its fastpath and hence needs to prefault more than PAGE_SIZE bytes. Add new functions in filemap.h to make that possible. Also kill a copy&pasted spurious space in both functions while at it. v2: As suggested by Andrew Morton, add a multipage parameter to both functions to avoid the additional branch for the pagemap.c hotpath. My gcc 4.6 here seems to dtrt and indeed reap these branches where not needed. v3: Becaus I couldn't find a way around adding a uaddr += PAGE_SIZE to the filemap.c hotpaths (that the compiler couldn't remove again), let's go with separate new functions for the multipage use-case. v4: Adjust comment to CodingStlye and fix spelling. Acked-by: Andrew Morton <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions