diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2015-05-04 13:10:11 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-06-25 10:49:28 +0200 |
commit | b01da6a08c523f5d1cd1a51107f8cca061040f45 (patch) | |
tree | a6f53ac915ee4cf2aba41dd98f182533792c15ba /net/ceph/pagevec.c | |
parent | ceph: check OSD caps before read/write (diff) | |
download | linux-b01da6a08c523f5d1cd1a51107f8cca061040f45.tar.xz linux-b01da6a08c523f5d1cd1a51107f8cca061040f45.zip |
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/pagevec.c')
-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); |