[PATCH 06/12] mm: Add get_kernel_page[s] for pinning of kernel addresses for I/O

2012-07-12 Thread Mel Gorman
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

[PATCH 06/12] mm: Add get_kernel_page[s] for pinning of kernel addresses for I/O

2012-07-12 Thread Mel Gorman
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