From: Lars Ellenberg Date: Mon, 26 Mar 2012 14:23:02 +0000 (+0200) Subject: drbd: remove unused static helper function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0642d5f8e0c974705932a4c3adf02192b9528d7b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drbd: remove unused static helper function Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index c5c44d974ee5..caeb01eef44e 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -1594,18 +1594,6 @@ static inline struct page *page_chain_next(struct page *page) #define page_chain_for_each_safe(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) {