Commit b01da6a0 authored by Ilya Dryomov's avatar Ilya Dryomov

libceph: use kvfree() instead of open-coding it

This one sneaked in through vfs tree with commit 2b777c9d
("ceph_sync_read: stop poking into iov_iter guts").
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 10183a69
...@@ -51,10 +51,7 @@ void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty) ...@@ -51,10 +51,7 @@ void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty)
set_page_dirty_lock(pages[i]); set_page_dirty_lock(pages[i]);
put_page(pages[i]); put_page(pages[i]);
} }
if (is_vmalloc_addr(pages)) kvfree(pages);
vfree(pages);
else
kfree(pages);
} }
EXPORT_SYMBOL(ceph_put_page_vector); EXPORT_SYMBOL(ceph_put_page_vector);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment