diff options
author | Nikolay Borisov <[email protected]> | 2016-04-18 22:08:53 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-02 11:22:31 -0700 |
commit | 4cd77889b684fd0dd1a0a995b692dda3db76a9ac (patch) | |
tree | 2abb34bf7bc2b0bb6c7b53cdb2102a2739481300 /module/zfs/zfs_ctldir.c | |
parent | ddab862d4cb860c6067b50ed2d040ac6d0f96b65 (diff) |
Kill znode->z_gen field
This field is a duplicate of the inode->i_generation, so just kill it
Signed-off-by: Nikolay Borisov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #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 937feac23..ead58b398 100644 --- a/module/zfs/zfs_ctldir.c +++ b/module/zfs/zfs_ctldir.c @@ -476,7 +476,6 @@ 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; @@ -489,6 +488,7 @@ 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); |