Browse Source

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>
Ilya Dryomov 10 years ago
parent
commit
b01da6a08c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      net/ceph/pagevec.c

+ 1 - 4
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);