Commit 07475ffb authored by Steve French's avatar Steve French

[CIFS] Display large/small total buffer allocations in /proc/fs/cifs/Stats

when CONFIG_CIFS_STATS2 is on (helps in debugging performance)
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 4498eed5
...@@ -280,6 +280,14 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset, ...@@ -280,6 +280,14 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
smBufAllocCount.counter,cifs_min_small); smBufAllocCount.counter,cifs_min_small);
length += item_length; length += item_length;
buf += 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 = item_length =
sprintf(buf,"Operations (MIDs): %d\n", sprintf(buf,"Operations (MIDs): %d\n",
midCount.counter); midCount.counter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment