OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10183a6
)
libceph: use kvfree() instead of open-coding it
author
Ilya Dryomov
<idryomov@gmail.com>
Mon, 4 May 2015 11:10:11 +0000
(14:10 +0300)
committer
Ilya Dryomov
<idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:28 +0000
(11:49 +0300)
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>
net/ceph/pagevec.c
patch
|
blob
|
history
diff --git
a/net/ceph/pagevec.c
b/net/ceph/pagevec.c
index
096d914
..
d4f5f22
100644
(file)
--- 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);