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_vnops.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_vnops.c')
-rw-r--r-- | module/zfs/zfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_vnops.c b/module/zfs/zfs_vnops.c index 7a8cef017..8af739041 100644 --- a/module/zfs/zfs_vnops.c +++ b/module/zfs/zfs_vnops.c @@ -2393,7 +2393,7 @@ zfs_getattr(struct inode *ip, vattr_t *vap, int flags, cred_t *cr) XVA_SET_RTN(xvap, XAT_REPARSE); } if (XVA_ISSET_REQ(xvap, XAT_GEN)) { - xoap->xoa_generation = zp->z_gen; + xoap->xoa_generation = ip->i_generation; XVA_SET_RTN(xvap, XAT_GEN); } |