Merge branch 'linux-have-mntent' into refs/top-bases/linux-zfs-branch

This commit is contained in:
Brian Behlendorf 2010-08-06 10:52:39 -07:00
commit f7017594c4
1 changed files with 3 additions and 2 deletions

View File

@ -1639,9 +1639,10 @@ zfs_ioc_objset_stats(struct file *filp, zfs_cmd_t *zc)
*/ */
if (!zc->zc_objset_stats.dds_inconsistent) { if (!zc->zc_objset_stats.dds_inconsistent) {
if (dmu_objset_type(os) == DMU_OST_ZVOL) if (dmu_objset_type(os) == DMU_OST_ZVOL)
VERIFY(zvol_get_stats(os, nv) == 0); error = zvol_get_stats(os, nv);
} }
error = put_nvlist(zc, nv); if (error == 0)
error = put_nvlist(zc, nv);
nvlist_free(nv); nvlist_free(nv);
} }