From b01da6a08c523f5d1cd1a51107f8cca061040f45 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Mon, 4 May 2015 14:10:11 +0300 Subject: libceph: use kvfree() instead of open-coding it This one sneaked in through vfs tree with commit 2b777c9dd9eb ("ceph_sync_read: stop poking into iov_iter guts"). Signed-off-by: Ilya Dryomov --- net/ceph/pagevec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'net/ceph') diff --git a/net/ceph/pagevec.c b/net/ceph/pagevec.c index 096d91447e06..d4f5f220a8e5 100644 --- a/net/ceph/pagevec.c +++ b/net/ceph/pagevec.c @@ -51,10 +51,7 @@ void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty) set_page_dirty_lock(pages[i]); put_page(pages[i]); } - if (is_vmalloc_addr(pages)) - vfree(pages); - else - kfree(pages); + kvfree(pages); } EXPORT_SYMBOL(ceph_put_page_vector); -- cgit v1.2.1