]> git.karo-electronics.de Git - linux-beck.git/blobdiff - fs/cifs/cifs_debug.c
[CIFS] Display large/small total buffer allocations in /proc/fs/cifs/Stats
[linux-beck.git] / fs / cifs / cifs_debug.c
index 7f19f2547d01ae25ae1b15c1a8db3e2fba199036..6f5d81f5eacb2e5f86246d5e913d5a5787dce188 100644 (file)
@@ -280,6 +280,14 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
                        smBufAllocCount.counter,cifs_min_small);
        length += item_length;
        buf += item_length;
+#ifdef CONFIG_CIFS_STATS2
+        item_length = sprintf(buf, "Total Large %d Small %d Allocations\n",
+                               atomic_read(&totBufAllocCount),
+                               atomic_read(&totSmBufAllocCount));
+       length += item_length;
+       buf += item_length;
+#endif /* CONFIG_CIFS_STATS2 */
+
        item_length = 
                sprintf(buf,"Operations (MIDs): %d\n",
                        midCount.counter);