diff options
author | Hajo Möller <[email protected]> | 2016-10-26 19:30:43 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-10-26 10:30:43 -0700 |
commit | e02aaf17f15ad274fa1f24c9c826f1477911ea3f (patch) | |
tree | 3190cb161bb2665f1e4e647d72b0ca98c7d56130 /module/zfs/zvol.c | |
parent | 76a87a902ef031432a855fb341cf35291e2be2b6 (diff) |
Fix lookup_bdev() on Ubuntu
Ubuntu added support for checking inode permissions to lookup_bdev() in kernel
commit 193fb6a2c94fab8eb8ce70a5da4d21c7d4023bee (merged in 4.4.0-6.21).
Upstream bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1636517
This patch adds a test for Ubuntu's variant of lookup_bdev() to configure and
calls the function in the correct way.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Hajo Möller <[email protected]>
Closes #5336
Diffstat (limited to 'module/zfs/zvol.c')
-rw-r--r-- | module/zfs/zvol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index bf6d59fba..72a6bc5e2 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -174,7 +174,7 @@ zvol_is_zvol(const char *device) struct block_device *bdev; unsigned int major; - bdev = lookup_bdev(device); + bdev = vdev_lookup_bdev(device); if (IS_ERR(bdev)) return (B_FALSE); |