ChangeSet 1.2195, 2005/03/24 12:13:35-06:00, [EMAIL PROTECTED]

        [CIFS] Display pool sizes in cifs stats
        
        Signed-off-by: Steve French ([EMAIL PROTECTED])



 CHANGES      |    3 ++-
 cifs_debug.c |    8 ++++----
 cifsfs.c     |    2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)


diff -Nru a/fs/cifs/CHANGES b/fs/cifs/CHANGES
--- a/fs/cifs/CHANGES   2005-03-30 12:09:27 -08:00
+++ b/fs/cifs/CHANGES   2005-03-30 12:09:27 -08:00
@@ -3,7 +3,8 @@
 Fix oops in ls when Transact2 FindFirst (or FindNext) returns more than one
 transact response for an SMB request and search entry split across two frames.
 Fix updates of DOS attributes and time fields so that files on NT4 servers
-do not get marked delete on close.
+do not get marked delete on close. Display sizes of cifs buffer pools in
+cifs stats.
 
 Version 1.30
 ------------
diff -Nru a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
--- a/fs/cifs/cifs_debug.c      2005-03-30 12:09:27 -08:00
+++ b/fs/cifs/cifs_debug.c      2005-03-30 12:09:27 -08:00
@@ -199,13 +199,13 @@
        length += item_length;
        buf += item_length;      
        item_length = 
-               sprintf(buf,"SMB Request/Response Buffer: %d\n",
-                       bufAllocCount.counter);
+               sprintf(buf,"SMB Request/Response Buffer: %d Pool size: %d\n",
+                       bufAllocCount.counter,cifs_min_rcv + 
tcpSesAllocCount.counter);
        length += item_length;
        buf += item_length;
        item_length = 
-               sprintf(buf,"SMB Small Req/Resp Buffer: %d\n",
-                       smBufAllocCount.counter);
+               sprintf(buf,"SMB Small Req/Resp Buffer: %d Pool size: %d\n",
+                       smBufAllocCount.counter,cifs_min_small);
        length += item_length;
        buf += item_length;
        item_length = 
diff -Nru a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
--- a/fs/cifs/cifsfs.c  2005-03-30 12:09:27 -08:00
+++ b/fs/cifs/cifsfs.c  2005-03-30 12:09:27 -08:00
@@ -661,7 +661,7 @@
                cifs_min_rcv = 1;
        else if (cifs_min_rcv > 64) {
                cifs_min_rcv = 64;
-               cFYI(1,("cifs_min_rcv set to maximum (64)"));
+               cERROR(1,("cifs_min_rcv set to maximum (64)"));
        }
 
        cifs_req_poolp = mempool_create(cifs_min_rcv,
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to