summaryrefslogtreecommitdiff
path: root/fs/ufs/super.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-12-11 06:35:18 -0500
committerJeff Layton <jlayton@redhat.com>2018-01-29 06:42:21 -0500
commitbb8c2d66bc6f7dd6e00fc25203efe0858cf91a5e (patch)
treedb9413cf84e355991c007f506ca0a8b4a862ee47 /fs/ufs/super.c
parentcc56c33e783fcd8ea0a84941cab4f919609b4835 (diff)
ufs: use new i_version API
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r--fs/ufs/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 4d497e9c6883..b6ba80e05bff 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -88,6 +88,7 @@
#include <linux/log2.h>
#include <linux/mount.h>
#include <linux/seq_file.h>
+#include <linux/iversion.h>
#include "ufs_fs.h"
#include "ufs.h"
@@ -1440,7 +1441,7 @@ static struct inode *ufs_alloc_inode(struct super_block *sb)
if (!ei)
return NULL;
- ei->vfs_inode.i_version = 1;
+ inode_set_iversion(&ei->vfs_inode, 1);
seqlock_init(&ei->meta_lock);
mutex_init(&ei->truncate_mutex);
return &ei->vfs_inode;