Lines Matching refs:cur
126 u64 cur, old; in inode_set_max_iversion_raw() local
128 cur = inode_peek_iversion_raw(inode); in inode_set_max_iversion_raw()
130 if (cur > val) in inode_set_max_iversion_raw()
132 old = atomic64_cmpxchg(&inode->i_version, cur, val); in inode_set_max_iversion_raw()
133 if (likely(old == cur)) in inode_set_max_iversion_raw()
135 cur = old; in inode_set_max_iversion_raw()
200 u64 cur, old, new; in inode_maybe_inc_iversion() local
213 cur = inode_peek_iversion_raw(inode); in inode_maybe_inc_iversion()
216 if (!force && !(cur & I_VERSION_QUERIED)) in inode_maybe_inc_iversion()
220 new = (cur & ~I_VERSION_QUERIED) + I_VERSION_INCREMENT; in inode_maybe_inc_iversion()
222 old = atomic64_cmpxchg(&inode->i_version, cur, new); in inode_maybe_inc_iversion()
223 if (likely(old == cur)) in inode_maybe_inc_iversion()
225 cur = old; in inode_maybe_inc_iversion()
307 u64 cur, old, new; in inode_query_iversion() local
309 cur = inode_peek_iversion_raw(inode); in inode_query_iversion()
312 if (cur & I_VERSION_QUERIED) { in inode_query_iversion()
322 new = cur | I_VERSION_QUERIED; in inode_query_iversion()
323 old = atomic64_cmpxchg(&inode->i_version, cur, new); in inode_query_iversion()
324 if (likely(old == cur)) in inode_query_iversion()
326 cur = old; in inode_query_iversion()
328 return cur >> I_VERSION_QUERIED_SHIFT; in inode_query_iversion()