Skip to content

Commit

Permalink
[CIFS] Display large/small total buffer allocations in /proc/fs/cifs/…
Browse files Browse the repository at this point in the history
…Stats

when CONFIG_CIFS_STATS2 is on (helps in debugging performance)

Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Dec 3, 2005
1 parent 4498eed commit 07475ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fs/cifs/cifs_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07475ff

Please sign in to comment.