diff options
author | LOLi <[email protected]> | 2017-05-25 18:55:55 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-05-25 09:55:55 -0700 |
commit | 3e6c9433474f0b6fc4880549c851bfb151c8c719 (patch) | |
tree | eaa7418721238ebc568ada37564d309efbee401a /module/zfs | |
parent | 4358afa0f2cd7629de9916ce69c5e7cdd85f6803 (diff) |
Linux 4.12 compat: fix super_setup_bdi_name() call
Provide a format parameter to super_setup_bdi_name() so we don't
create duplicate names in '/devices/virtual/bdi' sysfs namespace which
would prevent us from mounting more than one ZFS filesystem at a time.
Reviewed-by: Chunwei Chen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #6147
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zfs_vfsops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/zfs_vfsops.c b/module/zfs/zfs_vfsops.c index 15cadcad5..6d4761607 100644 --- a/module/zfs/zfs_vfsops.c +++ b/module/zfs/zfs_vfsops.c @@ -1568,8 +1568,7 @@ zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) return (0); } -#if !defined(HAVE_SUPER_SETUP_BDI_NAME) && \ - !defined(HAVE_2ARGS_BDI_SETUP_AND_REGISTER) && \ +#if !defined(HAVE_2ARGS_BDI_SETUP_AND_REGISTER) && \ !defined(HAVE_3ARGS_BDI_SETUP_AND_REGISTER) atomic_long_t zfs_bdi_seq = ATOMIC_LONG_INIT(0); #endif |