fix incorrect use of getzfsvfs_impl in r324163, ZFS Channel Programs
getzfsvfs_impl() returns a referenced, not busied, filesystem, so the matching call is vfs_rel, not vfs_unbusy. MFC after: 4 weeks X-MFC with: r324163
This commit is contained in:
parent
5fcd2d9bfc
commit
55b73eb9c5
@ -288,7 +288,7 @@ get_temporary_prop(dsl_dataset_t *ds, zfs_prop_t zfs_prop, uint64_t *val,
|
||||
#ifdef illumos
|
||||
VFS_RELE(vfsp);
|
||||
#else
|
||||
vfs_unbusy(vfsp);
|
||||
vfs_rel(vfsp);
|
||||
#endif
|
||||
return (ENOENT);
|
||||
}
|
||||
@ -296,7 +296,7 @@ get_temporary_prop(dsl_dataset_t *ds, zfs_prop_t zfs_prop, uint64_t *val,
|
||||
#ifdef illumos
|
||||
VFS_RELE(vfsp);
|
||||
#else
|
||||
vfs_unbusy(vfsp);
|
||||
vfs_rel(vfsp);
|
||||
#endif
|
||||
if (tmp != *val) {
|
||||
(void) strcpy(setpoint, "temporary");
|
||||
|
Loading…
x
Reference in New Issue
Block a user