summaryrefslogtreecommitdiffstats
path: root/fs/affs/dir.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2017-12-11 06:35:10 -0500
committerJeff Layton <jlayton@redhat.com>2018-01-29 06:42:20 -0500
commit9dffe569d942a57cfd27ee961f8fb6facc6ba86a (patch)
treec78fd82da99e3867637dd45e193097d927c1a807 /fs/affs/dir.c
parent2489dbabea80e8c075eb01bf195d8bb0b1440dd2 (diff)
downloadlinux-9dffe569d942a57cfd27ee961f8fb6facc6ba86a.tar.bz2
affs: convert to new i_version API
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/affs/dir.c')
-rw-r--r--fs/affs/dir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/affs/dir.c b/fs/affs/dir.c
index a105e77df2c1..d180b46453cf 100644
--- a/fs/affs/dir.c
+++ b/fs/affs/dir.c
@@ -14,6 +14,7 @@
*
*/
+#include <linux/iversion.h>
#include "affs.h"
static int affs_readdir(struct file *, struct dir_context *);
@@ -80,7 +81,7 @@ affs_readdir(struct file *file, struct dir_context *ctx)
* we can jump directly to where we left off.
*/
ino = (u32)(long)file->private_data;
- if (ino && file->f_version == inode->i_version) {
+ if (ino && inode_cmp_iversion(inode, file->f_version) == 0) {
pr_debug("readdir() left off=%d\n", ino);
goto inside;
}
@@ -130,7 +131,7 @@ inside:
} while (ino);
}
done:
- file->f_version = inode->i_version;
+ file->f_version = inode_query_iversion(inode);
file->private_data = (void *)(long)ino;
affs_brelse(fh_bh);