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 Initialize z_lock...



details:   https://anonhg.NetBSD.org/src/rev/e114dc9f8a6d
branches:  trunk
changeset: 363508:e114dc9f8a6d
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Jul 31 09:33:50 2018 +0000

description:
Initialize z_lockf for new znodes.

Ok: Chuck Silvers

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 249d5711bdd2 -r e114dc9f8a6d external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c    Tue Jul 31 09:19:34 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_znode.c    Tue Jul 31 09:33:50 2018 +0000
@@ -1309,6 +1309,7 @@
        zp->z_blksz = blksz;
        zp->z_seq = 0x7A4653;
        zp->z_sync_cnt = 0;
+       zp->z_lockf = NULL;
 
        zfs_znode_sa_init(zfsvfs, zp, db, obj_type, hdl);
 



Home | Main Index | Thread Index | Old Index