summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2015-05-04 14:10:11 +0300
committerIlya Dryomov <idryomov@gmail.com>2015-06-25 11:49:28 +0300
commitb01da6a08c523f5d1cd1a51107f8cca061040f45 (patch)
treea6f53ac915ee4cf2aba41dd98f182533792c15ba /net
parent10183a69551f76702ac68bc74a437b25419c6de0 (diff)
downloadlinux-b01da6a08c523f5d1cd1a51107f8cca061040f45.tar.xz
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 <idryomov@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/ceph/pagevec.c5
1 files changed, 1 insertions, 4 deletions
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);