diff options
author | Brian Behlendorf <[email protected]> | 2018-02-08 14:27:59 -0800 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2018-03-14 16:10:36 -0700 |
commit | 310e63dfd18f59ad583631dfa2f55d40cedf1415 (patch) | |
tree | d0051541401c04e91514770e92aa3aa0f69c31b7 /module | |
parent | a196b3bc3dcc14bda32b2fbed40d5e436319aca6 (diff) |
Linux 4.16 compat: inode_set_iversion()
A new interface was added to manipulate the version field of an
inode. Add a inode_set_iversion() wrapper for older kernels and
use the new interface when available.
The i_version field was dropped from the trace point due to the
switch to an atomic64_t i_version type.
Reviewed-by: Olaf Faaland <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Chunwei Chen <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #7148
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zpl_super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zpl_super.c b/module/zfs/zpl_super.c index b6ef60277..25e75a897 100644 --- a/module/zfs/zpl_super.c +++ b/module/zfs/zpl_super.c @@ -36,7 +36,7 @@ zpl_inode_alloc(struct super_block *sb) struct inode *ip; VERIFY3S(zfs_inode_alloc(sb, &ip), ==, 0); - ip->i_version = 1; + inode_set_iversion(ip, 1); return (ip); } |