From: Ilya Dryomov Date: Mon, 4 May 2015 11:10:11 +0000 (+0300) Subject: libceph: use kvfree() instead of open-coding it X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b01da6a08c523f5d1cd1a51107f8cca061040f45;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);