aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index d9f3d067cd15..4a3d4ef76127 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -2032,9 +2032,9 @@ static void nfs_access_free_entry(struct nfs_access_entry *entry)
2032{ 2032{
2033 put_rpccred(entry->cred); 2033 put_rpccred(entry->cred);
2034 kfree(entry); 2034 kfree(entry);
2035 smp_mb__before_atomic_dec(); 2035 smp_mb__before_atomic();
2036 atomic_long_dec(&nfs_access_nr_entries); 2036 atomic_long_dec(&nfs_access_nr_entries);
2037 smp_mb__after_atomic_dec(); 2037 smp_mb__after_atomic();
2038} 2038}
2039 2039
2040static void nfs_access_free_list(struct list_head *head) 2040static void nfs_access_free_list(struct list_head *head)
@@ -2082,9 +2082,9 @@ nfs_access_cache_scan(struct shrinker *shrink, struct shrink_control *sc)
2082 else { 2082 else {
2083remove_lru_entry: 2083remove_lru_entry:
2084 list_del_init(&nfsi->access_cache_inode_lru); 2084 list_del_init(&nfsi->access_cache_inode_lru);
2085 smp_mb__before_clear_bit(); 2085 smp_mb__before_atomic();
2086 clear_bit(NFS_INO_ACL_LRU_SET, &nfsi->flags); 2086 clear_bit(NFS_INO_ACL_LRU_SET, &nfsi->flags);
2087 smp_mb__after_clear_bit(); 2087 smp_mb__after_atomic();
2088 } 2088 }
2089 spin_unlock(&inode->i_lock); 2089 spin_unlock(&inode->i_lock);
2090 } 2090 }
@@ -2232,9 +2232,9 @@ void nfs_access_add_cache(struct inode *inode, struct nfs_access_entry *set)
2232 nfs_access_add_rbtree(inode, cache); 2232 nfs_access_add_rbtree(inode, cache);
2233 2233
2234 /* Update accounting */ 2234 /* Update accounting */
2235 smp_mb__before_atomic_inc(); 2235 smp_mb__before_atomic();
2236 atomic_long_inc(&nfs_access_nr_entries); 2236 atomic_long_inc(&nfs_access_nr_entries);
2237 smp_mb__after_atomic_inc(); 2237 smp_mb__after_atomic();
2238 2238
2239 /* Add inode to global LRU list */ 2239 /* Add inode to global LRU list */
2240 if (!test_bit(NFS_INO_ACL_LRU_SET, &NFS_I(inode)->flags)) { 2240 if (!test_bit(NFS_INO_ACL_LRU_SET, &NFS_I(inode)->flags)) {