diff options
author | Ilya Dryomov | 2015-05-04 14:10:11 +0300 |
---|---|---|
committer | Ilya Dryomov | 2015-06-25 11:49:28 +0300 |
commit | b01da6a08c523f5d1cd1a51107f8cca061040f45 (patch) | |
tree | a6f53ac915ee4cf2aba41dd98f182533792c15ba /net/ceph | |
parent | 10183a69551f76702ac68bc74a437b25419c6de0 (diff) |
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 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); |