Skip to content

Commit

Permalink
libceph: use kvfree() instead of open-coding it
Browse files Browse the repository at this point in the history
This one sneaked in through vfs tree with commit 2b777c9
("ceph_sync_read: stop poking into iov_iter guts").

Signed-off-by: Ilya Dryomov <[email protected]>
  • Loading branch information
idryomov committed Jun 25, 2015
1 parent 10183a6 commit b01da6a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/ceph/pagevec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b01da6a

Please sign in to comment.