Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a796c6f authored by Amit Pundir's avatar Amit Pundir
Browse files

RFC: ANDROID: fs: sdcardfs: Use inode iversion helpers



Upstream commit f02a9ad1 ("fs: handle inode->i_version more efficiently")
converted the inode -> i_version counter to an atomic64_t. So move to using
relevant iversion helper routines for basic operations instead.

Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent c6bc8ac9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ struct inode *sdcardfs_iget(struct super_block *sb, struct inode *lower_inode, u
	inode->i_ino = lower_inode->i_ino;
	sdcardfs_set_lower_inode(inode, lower_inode);

	inode->i_version++;
	inode_inc_iversion_raw(inode);

	/* use different set of inode ops for symlinks & directories */
	if (S_ISDIR(lower_inode->i_mode))
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
#include <linux/security.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/iversion.h>
#include "multiuser.h"

/* the file system name */
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ static struct inode *sdcardfs_alloc_inode(struct super_block *sb)
	spin_lock_init(&i->top_lock);
	kref_get(&d->refcount);

	i->vfs_inode.i_version = 1;
	inode_set_iversion(&i->vfs_inode, 1);
	return &i->vfs_inode;
}