mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 14:54:49 +08:00
drbd: remove unused static helper function
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
e44d71f36c
commit
0642d5f8e0
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user