mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Linux 5.18 compat: replace genhd.h with blkdev.h includes
blkdev.h includes genhd.h since dawn of upstream git, so this is
globally safe
Upstream-commit: 322cbb50de711814c42fb088f6d31901502c711a ("block:
remove genhd.h")
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13251
This commit is contained in:
@@ -906,7 +906,7 @@ zvol_alloc(dev_t dev, const char *name)
|
||||
if (volmode == ZFS_VOLMODE_DEV) {
|
||||
/*
|
||||
* ZFS_VOLMODE_DEV disable partitioning on ZVOL devices: set
|
||||
* gendisk->minors = 1 as noted in include/linux/genhd.h.
|
||||
* gendisk->minors = 1 as noted in include/linux/blkdev.h.
|
||||
* Also disable extended partition numbers (GENHD_FL_EXT_DEVT)
|
||||
* and suppresses partition scanning (GENHD_FL_NO_PART_SCAN)
|
||||
* setting gendisk->flags accordingly.
|
||||
|
||||
Reference in New Issue
Block a user