summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2020-06-05 17:21:04 -0700
committerGitHub <[email protected]>2020-06-05 17:21:04 -0700
commit63761a8f1abd084dbae8a284e48c25d87ae9080e (patch)
treed2010859dc28fc4d7fa38ca1879c4e11beb68d92
parent4547fc4e071ceb1818b3a46c3035b923e06e5390 (diff)
parent7da304bbcecb0e723ca81661c590ce1fc888904b (diff)
zfsvfs_setup(): zap_stats_t may have undefined content when accessed (#10398)
Signed-off-by: Allan Jude <[email protected]> Co-authored-by: Allan Jude <[email protected]>
-rw-r--r--module/os/linux/zfs/zfs_vfsops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/os/linux/zfs/zfs_vfsops.c b/module/os/linux/zfs/zfs_vfsops.c
index 6a713524f..c299a460e 100644
--- a/module/os/linux/zfs/zfs_vfsops.c
+++ b/module/os/linux/zfs/zfs_vfsops.c
@@ -878,10 +878,10 @@ zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting)
&zs) == 0) {
dataset_kstats_update_nunlinks_kstat(
&zfsvfs->z_kstat, zs.zs_num_entries);
+ dprintf_ds(zfsvfs->z_os->os_dsl_dataset,
+ "num_entries in unlinked set: %llu",
+ zs.zs_num_entries);
}
- dprintf_ds(zfsvfs->z_os->os_dsl_dataset,
- "num_entries in unlinked set: %llu",
- zs.zs_num_entries);
zfs_unlinked_drain(zfsvfs);
dsl_dir_t *dd = zfsvfs->z_os->os_dsl_dataset->ds_dir;
dd->dd_activity_cancelled = B_FALSE;