summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2012-03-08 06:01:56 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-05-09 09:16:44 -0400
commit7ffcaa7194e2c96a738b936d2ae71c7f0c697c0a (patch)
tree94119703e3f7b4923939c81a0018a3adaf0af3ec /drivers/block
parenta5d214f621d47ffb89d294838006d30869050297 (diff)
drbd: remove unused static helper function
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_int.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index fff8f790f79d..746f7933bf86 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -1751,19 +1751,6 @@ static inline struct page *page_chain_next(struct page *page)
1751#define page_chain_for_each_safe(page, n) \ 1751#define page_chain_for_each_safe(page, n) \
1752 for (; page && ({ n = page_chain_next(page); 1; }); page = n) 1752 for (; page && ({ n = page_chain_next(page); 1; }); page = n)
1753 1753
1754static inline int drbd_bio_has_active_page(struct bio *bio)
1755{
1756 struct bio_vec *bvec;
1757 int i;
1758
1759 __bio_for_each_segment(bvec, bio, i, 0) {
1760 if (page_count(bvec->bv_page) > 1)
1761 return 1;
1762 }
1763
1764 return 0;
1765}
1766
1767static inline int drbd_ee_has_active_page(struct drbd_epoch_entry *e) 1754static inline int drbd_ee_has_active_page(struct drbd_epoch_entry *e)
1768{ 1755{
1769 struct page *page = e->pages; 1756 struct page *page = e->pages;
@@ -1774,7 +1761,6 @@ static inline int drbd_ee_has_active_page(struct drbd_epoch_entry *e)
1774 return 0; 1761 return 0;
1775} 1762}
1776 1763
1777
1778static inline void drbd_state_lock(struct drbd_conf *mdev) 1764static inline void drbd_state_lock(struct drbd_conf *mdev)
1779{ 1765{
1780 wait_event(mdev->misc_wait, 1766 wait_event(mdev->misc_wait,