]> Git Repo - linux.git/commit
mm: add get_kernel_page[s] for pinning of kernel addresses for I/O
authorMel Gorman <[email protected]>
Tue, 31 Jul 2012 23:44:51 +0000 (16:44 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 Aug 2012 01:42:47 +0000 (18:42 -0700)
commit18022c5d8627a7a9ba8097a0f238b513fae6f5b8
tree57e0d0ec6a5369c56bd00957eb9c0e1220e62917
parentf981c5950fa85916ba49bea5d9a7a5078f47e569
mm: add get_kernel_page[s] for pinning of kernel addresses for I/O

This patch adds two new APIs get_kernel_pages() and get_kernel_page() that
may be used to pin a vector of kernel addresses for IO.  The initial user
is expected to be NFS for allowing pages to be written to swap using
aops->direct_IO().  Strictly speaking, swap-over-NFS only needs to pin one
page for IO but it makes sense to express the API in terms of a vector and
add a helper for pinning single pages.

Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Eric B Munson <[email protected]>
Cc: Eric Paris <[email protected]>
Cc: James Morris <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Mike Christie <[email protected]>
Cc: Neil Brown <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Trond Myklebust <[email protected]>
Cc: Xiaotian Feng <[email protected]>
Cc: Mark Salter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/blk_types.h
include/linux/fs.h
include/linux/mm.h
mm/swap.c
This page took 0.054951 seconds and 4 git commands to generate.