mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
config: remove HAVE_BIO_SET_DEV
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
committed by
Brian Behlendorf
parent
0a61e51736
commit
a298801426
@@ -496,7 +496,6 @@ vdev_disk_close(vdev_t *v)
|
||||
*/
|
||||
#if !defined(HAVE_BIO_ALLOC_4ARG)
|
||||
|
||||
#ifdef HAVE_BIO_SET_DEV
|
||||
#if defined(CONFIG_BLK_CGROUP) && defined(HAVE_BIO_SET_DEV_GPL_ONLY)
|
||||
/*
|
||||
* The Linux 5.5 kernel updated percpu_ref_tryget() which is inlined by
|
||||
@@ -582,16 +581,6 @@ vdev_bio_set_dev(struct bio *bio, struct block_device *bdev)
|
||||
#define bio_set_dev vdev_bio_set_dev
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
/*
|
||||
* Provide a bio_set_dev() helper macro for pre-Linux 4.14 kernels.
|
||||
*/
|
||||
static inline void
|
||||
bio_set_dev(struct bio *bio, struct block_device *bdev)
|
||||
{
|
||||
bio->bi_bdev = bdev;
|
||||
}
|
||||
#endif /* HAVE_BIO_SET_DEV */
|
||||
#endif /* !HAVE_BIO_ALLOC_4ARG */
|
||||
|
||||
static inline void
|
||||
|
||||
Reference in New Issue
Block a user