aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index b7e676bb01bc..1d5e14139795 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1676,25 +1676,6 @@ static inline void put_dev_sector(Sector p)
1676 put_page(p.v); 1676 put_page(p.v);
1677} 1677}
1678 1678
1679static inline bool __bvec_gap_to_prev(struct request_queue *q,
1680 struct bio_vec *bprv, unsigned int offset)
1681{
1682 return offset ||
1683 ((bprv->bv_offset + bprv->bv_len) & queue_virt_boundary(q));
1684}
1685
1686/*
1687 * Check if adding a bio_vec after bprv with offset would create a gap in
1688 * the SG list. Most drivers don't care about this, but some do.
1689 */
1690static inline bool bvec_gap_to_prev(struct request_queue *q,
1691 struct bio_vec *bprv, unsigned int offset)
1692{
1693 if (!queue_virt_boundary(q))
1694 return false;
1695 return __bvec_gap_to_prev(q, bprv, offset);
1696}
1697
1698int kblockd_schedule_work(struct work_struct *work); 1679int kblockd_schedule_work(struct work_struct *work);
1699int kblockd_schedule_work_on(int cpu, struct work_struct *work); 1680int kblockd_schedule_work_on(int cpu, struct work_struct *work);
1700int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay); 1681int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay);