large read may require allocating large page vector Signed-off-by: "Yan, Zheng" <zyan@xxxxxxxxxx> --- net/ceph/pagevec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ceph/pagevec.c b/net/ceph/pagevec.c index d3736f5bffec..b1c47ba0c38a 100644 --- a/net/ceph/pagevec.c +++ b/net/ceph/pagevec.c @@ -62,7 +62,7 @@ void ceph_release_page_vector(struct page **pages, int num_pages) for (i = 0; i < num_pages; i++) __free_pages(pages[i], 0); - kfree(pages); + kvfree(pages); } EXPORT_SYMBOL(ceph_release_page_vector); @@ -74,7 +74,7 @@ struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags) struct page **pages; int i; - pages = kmalloc_array(num_pages, sizeof(*pages), flags); + pages = kvmalloc_array(num_pages, sizeof(*pages), flags); if (!pages) return ERR_PTR(-ENOMEM); for (i = 0; i < num_pages; i++) { -- 2.17.1