Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs zfs_netbsd_reclai...
details: https://anonhg.NetBSD.org/src/rev/198bf743bd5f
branches: trunk
changeset: 448572:198bf743bd5f
user: hannken <hannken%NetBSD.org@localhost>
date: Tue Feb 05 09:50:18 2019 +0000
description:
zfs_netbsd_reclaim(): validate "z_log" before zil_commit().
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5ad1eb233f13 -r 198bf743bd5f external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c Tue Feb 05 09:49:44 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c Tue Feb 05 09:50:18 2019 +0000
@@ -5680,7 +5680,8 @@
}
}
- zil_commit(zfsvfs->z_log, zp->z_id);
+ if (zfsvfs->z_log)
+ zil_commit(zfsvfs->z_log, zp->z_id);
if (zp->z_sa_hdl == NULL)
zfs_znode_free(zp);
Home |
Main Index |
Thread Index |
Old Index