Skip to content

Commit

Permalink
Merge branch 'linux-6.5-blkdev-changes' into ck-master
Browse files Browse the repository at this point in the history
  • Loading branch information
ckane committed Jul 30, 2023
2 parents 490a236 + de56924 commit f4af131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/os/linux/zfs/vdev_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ vdev_disk_kobj_evt_post(vdev_t *v)
}
}

#ifndef HAVE_BLKDEV_GET_BY_PATH_4ARGS
#if !defined(HAVE_BLKDEV_GET_BY_PATH_4ARG)
/*
* Define a dummy struct blk_holder_ops for kernel versions
* prior to 6.5.
Expand All @@ -223,7 +223,7 @@ static inline struct block_device *
vdev_blkdev_get_by_path(const char *path, spa_mode_t mode, void *holder,
const struct blk_holder_ops *hops)
{
#ifdef HAVE_BLKDEV_GET_BY_PATH_4ARGS
#ifdef HAVE_BLKDEV_GET_BY_PATH_4ARG
return (blkdev_get_by_path(path,
vdev_bdev_mode(mode) | BLK_OPEN_EXCL, holder, hops));
#else
Expand Down

0 comments on commit f4af131

Please sign in to comment.