]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/cifs/cifs_debug.c
Importing "grsecurity-3.1-3.19.2-201503201903.patch"
[people/ms/linux.git] / fs / cifs / cifs_debug.c
index 7febcf2475c5ab675c04dfd2fddaa3ed574522a0..62a57215baa72968fe91df290226c34454dffd95 100644 (file)
@@ -269,8 +269,8 @@ static ssize_t cifs_stats_proc_write(struct file *file,
 
        if (strtobool(&c, &bv) == 0) {
 #ifdef CONFIG_CIFS_STATS2
-               atomic_set(&totBufAllocCount, 0);
-               atomic_set(&totSmBufAllocCount, 0);
+               atomic_set_unchecked(&totBufAllocCount, 0);
+               atomic_set_unchecked(&totSmBufAllocCount, 0);
 #endif /* CONFIG_CIFS_STATS2 */
                spin_lock(&cifs_tcp_ses_lock);
                list_for_each(tmp1, &cifs_tcp_ses_list) {
@@ -283,7 +283,7 @@ static ssize_t cifs_stats_proc_write(struct file *file,
                                        tcon = list_entry(tmp3,
                                                          struct cifs_tcon,
                                                          tcon_list);
-                                       atomic_set(&tcon->num_smbs_sent, 0);
+                                       atomic_set_unchecked(&tcon->num_smbs_sent, 0);
                                        if (server->ops->clear_stats)
                                                server->ops->clear_stats(tcon);
                                }
@@ -315,8 +315,8 @@ static int cifs_stats_proc_show(struct seq_file *m, void *v)
                        smBufAllocCount.counter, cifs_min_small);
 #ifdef CONFIG_CIFS_STATS2
        seq_printf(m, "Total Large %d Small %d Allocations\n",
-                               atomic_read(&totBufAllocCount),
-                               atomic_read(&totSmBufAllocCount));
+                               atomic_read_unchecked(&totBufAllocCount),
+                               atomic_read_unchecked(&totSmBufAllocCount));
 #endif /* CONFIG_CIFS_STATS2 */
 
        seq_printf(m, "Operations (MIDs): %d\n", atomic_read(&midCount));
@@ -345,7 +345,7 @@ static int cifs_stats_proc_show(struct seq_file *m, void *v)
                                if (tcon->need_reconnect)
                                        seq_puts(m, "\tDISCONNECTED ");
                                seq_printf(m, "\nSMBs: %d",
-                                          atomic_read(&tcon->num_smbs_sent));
+                                          atomic_read_unchecked(&tcon->num_smbs_sent));
                                if (server->ops->print_stats)
                                        server->ops->print_stats(m, tcon);
                        }