summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorHajo Möller <dasjoe@users.noreply.github.com>2016-10-26 19:30:43 +0200
committerBrian Behlendorf <behlendorf1@llnl.gov>2017-02-03 10:24:34 -0800
commitffcd0c5434d652326723b6bc302090329d5704e4 (patch)
treefaebbcb8aaa7d465ef5209ea3dc20a0d9c82c6f8 /module
parentd2beed9116a9b9425b34c03f8e301ad2bb053a42 (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 <behlendorf1@llnl.gov> Signed-off-by: Hajo Möller <dasjoe@gmail.com> Closes #5336
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zvol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c
index 04f68b5f8..0bb68f9b8 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);