|
@@ -110,12 +110,13 @@ inode_set_iversion_queried(struct inode *inode, u64 new)
|
|
static inline bool
|
|
static inline bool
|
|
inode_maybe_inc_iversion(struct inode *inode, bool force)
|
|
inode_maybe_inc_iversion(struct inode *inode, bool force)
|
|
{
|
|
{
|
|
- spin_lock(&inode->i_lock);
|
|
|
|
- inode->i_version++;
|
|
|
|
- spin_unlock(&inode->i_lock);
|
|
|
|
|
|
+ atomic64_t *ivp = (atomic64_t *)&inode->i_version;
|
|
|
|
+
|
|
|
|
+ atomic64_inc(ivp);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* inode_inc_iversion - forcibly increment i_version
|
|
* inode_inc_iversion - forcibly increment i_version
|
|
* @inode: inode that needs to be updated
|
|
* @inode: inode that needs to be updated
|