diff options
author | Brian Behlendorf <[email protected]> | 2016-05-12 13:31:55 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-12 13:36:22 -0700 |
commit | c15706490e5d018542ab4bef1a5ab83122a4b351 (patch) | |
tree | e2f489c01230583881cdab63d85c87cddf386f61 /module/zfs/zfs_ctldir.c | |
parent | 193a37cb2430960ce759daf12ce5cc804818aba1 (diff) |
Revert "Kill znode->z_gen field"
This reverts commit 4cd77889b684fd0dd1a0a995b692dda3db76a9ac. The
i_generation field in the inode is 32-bit and the SA code expects
64-bit fixed values. Revert this optimization for now until
this is cleanly addressed.
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #4538
Diffstat (limited to 'module/zfs/zfs_ctldir.c')
-rw-r--r-- | module/zfs/zfs_ctldir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_ctldir.c b/module/zfs/zfs_ctldir.c index ead58b398..937feac23 100644 --- a/module/zfs/zfs_ctldir.c +++ b/module/zfs/zfs_ctldir.c @@ -476,6 +476,7 @@ zfsctl_inode_alloc(zfs_sb_t *zsb, uint64_t id, zp->z_blksz = 0; zp->z_seq = 0; zp->z_mapcnt = 0; + zp->z_gen = 0; zp->z_size = 0; zp->z_links = 0; zp->z_pflags = 0; @@ -488,7 +489,6 @@ zfsctl_inode_alloc(zfs_sb_t *zsb, uint64_t id, zp->z_is_ctldir = B_TRUE; zp->z_is_sa = B_FALSE; zp->z_is_stale = B_FALSE; - ip->i_generation = 0; ip->i_ino = id; ip->i_mode = (S_IFDIR | S_IRUGO | S_IXUGO); ip->i_uid = SUID_TO_KUID(0); |