exofs: switch to new i_version API

Signed-off-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
Jeff Layton
2017-12-11 06:35:13 -05:00
parent c7f88c4e78
commit 317bc94780
2 changed files with 7 additions and 5 deletions

View File

@@ -38,6 +38,7 @@
#include <linux/module.h>
#include <linux/exportfs.h>
#include <linux/slab.h>
#include <linux/iversion.h>
#include "exofs.h"
@@ -159,7 +160,7 @@ static struct inode *exofs_alloc_inode(struct super_block *sb)
if (!oi)
return NULL;
oi->vfs_inode.i_version = 1;
inode_set_iversion(&oi->vfs_inode, 1);
return &oi->vfs_inode;
}