aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/freebsd/zfs/zfs_ctldir.c
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2021-12-16 16:22:15 -0500
committerGitHub <[email protected]>2021-12-16 13:22:15 -0800
commit92a9e8c6181381119ae5c7699748307cf90dfe1c (patch)
treef62336ee78b9d2f3fb3b9236947a26b5ec70639a /module/os/freebsd/zfs/zfs_ctldir.c
parentf6a0dac84af2fba9c306a3a307ea7aafcbe32d2b (diff)
FreeBSD: Provide correct file generation number
va_seq was actually a thin veil over va_gen, so z_gen is a more appropriate value than z_seq to populate the field with. Drop the unnecessary compat obfuscation and provide the correct file generation number. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #12851
Diffstat (limited to 'module/os/freebsd/zfs/zfs_ctldir.c')
-rw-r--r--module/os/freebsd/zfs/zfs_ctldir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/freebsd/zfs/zfs_ctldir.c b/module/os/freebsd/zfs/zfs_ctldir.c
index 11620949d..206f65b08 100644
--- a/module/os/freebsd/zfs/zfs_ctldir.c
+++ b/module/os/freebsd/zfs/zfs_ctldir.c
@@ -496,7 +496,7 @@ zfsctl_common_getattr(vnode_t *vp, vattr_t *vap)
*/
vap->va_blksize = 0;
vap->va_nblocks = 0;
- vap->va_seq = 0;
+ vap->va_gen = 0;
vn_fsid(vp, vap);
vap->va_mode = zfsctl_ctldir_mode;
vap->va_type = VDIR;