提交 0642d5f8 编写于 作者: L Lars Ellenberg 提交者: Philipp Reisner

drbd: remove unused static helper function

Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 e44d71f3
...@@ -1594,18 +1594,6 @@ static inline struct page *page_chain_next(struct page *page) ...@@ -1594,18 +1594,6 @@ static inline struct page *page_chain_next(struct page *page)
#define page_chain_for_each_safe(page, n) \ #define page_chain_for_each_safe(page, n) \
for (; page && ({ n = page_chain_next(page); 1; }); page = n) for (; page && ({ n = page_chain_next(page); 1; }); page = n)
static inline int drbd_bio_has_active_page(struct bio *bio)
{
struct bio_vec *bvec;
int i;
__bio_for_each_segment(bvec, bio, i, 0) {
if (page_count(bvec->bv_page) > 1)
return 1;
}
return 0;
}
static inline int drbd_peer_req_has_active_page(struct drbd_peer_request *peer_req) static inline int drbd_peer_req_has_active_page(struct drbd_peer_request *peer_req)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册