diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2015-05-04 11:10:11 (GMT) |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-06-25 08:49:28 (GMT) |
commit | b01da6a08c523f5d1cd1a51107f8cca061040f45 (patch) | |
tree | a6f53ac915ee4cf2aba41dd98f182533792c15ba /net/ceph | |
parent | 10183a69551f76702ac68bc74a437b25419c6de0 (diff) | |
download | linux-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/ceph')
-rw-r--r-- | net/ceph/pagevec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ceph/pagevec.c b/net/ceph/pagevec.c index 096d914..d4f5f22 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); |