DragonFly BSD
DragonFly users List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[PATCH] HAMMER: Suppress rebalance buffer message.


From: Dylan Reinhold <dylan@xxxxxxxxxxxxxxxx>
Date: Tue, 27 Apr 2010 22:04:21 -0700

Only show the message if debug.general is 0x0080
---
 sys/vfs/hammer/hammer_ioctl.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/vfs/hammer/hammer_ioctl.c b/sys/vfs/hammer/hammer_ioctl.c
index f8fe994..dc7eb90 100644
--- a/sys/vfs/hammer/hammer_ioctl.c
+++ b/sys/vfs/hammer/hammer_ioctl.c
@@ -94,9 +94,11 @@ hammer_ioctl(hammer_inode_t ip, u_long com, caddr_t data, int fflag,
 		 * little memory will not be able to do it.
 		 */
 		if (error == 0 && nbuf < HAMMER_REBALANCE_MIN_BUFS) {
-			kprintf("hammer: System has insufficient buffers "
-				"to rebalance the tree.  nbuf < %d\n",
+			if (hammer_debug_general & 0x0080) {
+				kprintf("hammer: System has insufficient "
+				"buffers to rebalance the tree.  nbuf < %d\n",
 				HAMMER_REBALANCE_MIN_BUFS);
+			}
 			error = ENOSPC;
 		}
 		if (error == 0) {
-- 
1.6.4


--------------080903020605010406020702--



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]