lkml.org 
[lkml]   [2002]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] KERN_INFO 2.4.19-pre2 fs
Date
Primary purpose of this patch is to make KERN_WARNING and
KERN_INFO log levels closer to their original meaning.
Today they are quite far from what was intended.
Just look what kernel writes at the WARNING level
each time you boot your box!

Diff for fs/*.c cache size messages and the like.

diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/fs/buffer.c linux-new/fs/buffer.c
--- linux-2.4.19-pre2/fs/buffer.c Tue Mar 5 12:42:34 2002
+++ linux-new/fs/buffer.c Mon Mar 11 10:47:42 2002
@@ -2798,7 +2798,7 @@
hash_table = (struct buffer_head **)
__get_free_pages(GFP_ATOMIC, order);
} while (hash_table == NULL && --order > 0);
- printk("Buffer-cache hash table entries: %d (order: %d, %ld bytes)\n",
+ printk(KERN_INFO "Buffer cache hash table entries: %d (order: %d, %ld bytes)\n",
nr_hash, order, (PAGE_SIZE << order));

if (!hash_table)
diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/fs/dcache.c linux-new/fs/dcache.c
--- linux-2.4.19-pre2/fs/dcache.c Mon Feb 25 17:38:08 2002
+++ linux-new/fs/dcache.c Mon Mar 11 10:47:42 2002
@@ -1210,7 +1210,7 @@
__get_free_pages(GFP_ATOMIC, order);
} while (dentry_hashtable == NULL && --order >= 0);

- printk("Dentry-cache hash table entries: %d (order: %ld, %ld bytes)\n",
+ printk(KERN_INFO "Dentry cache hash table entries: %d (order: %ld, %ld bytes)\n",
nr_hash, order, (PAGE_SIZE << order));

if (!dentry_hashtable)
diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/fs/inode.c linux-new/fs/inode.c
--- linux-2.4.19-pre2/fs/inode.c Fri Dec 21 15:41:55 2001
+++ linux-new/fs/inode.c Mon Mar 11 10:47:42 2002
@@ -1152,7 +1152,7 @@
__get_free_pages(GFP_ATOMIC, order);
} while (inode_hashtable == NULL && --order >= 0);

- printk("Inode-cache hash table entries: %d (order: %ld, %ld bytes)\n",
+ printk(KERN_INFO "Inode cache hash table entries: %d (order: %ld, %ld bytes)\n",
nr_hash, order, (PAGE_SIZE << order));

if (!inode_hashtable)
diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/fs/namespace.c linux-new/fs/namespace.c
--- linux-2.4.19-pre2/fs/namespace.c Tue Mar 5 12:42:37 2002
+++ linux-new/fs/namespace.c Mon Mar 11 10:47:42 2002
@@ -1056,8 +1056,9 @@
nr_hash = 1UL << hash_bits;
hash_mask = nr_hash-1;

- printk("Mount-cache hash table entries: %d (order: %ld, %ld bytes)\n",
- nr_hash, order, (PAGE_SIZE << order));
+ printk(KERN_INFO "Mount cache hash table entries: %d"
+ " (order: %ld, %ld bytes)\n",
+ nr_hash, order, (PAGE_SIZE << order));

/* And initialize the newly allocated array */
d = mount_hashtable;
diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/fs/super.c linux-new/fs/super.c
--- linux-2.4.19-pre2/fs/super.c Tue Mar 5 12:42:38 2002
+++ linux-new/fs/super.c Mon Mar 11 10:47:42 2002
@@ -762,7 +762,7 @@

/* Forget any remaining inodes */
if (invalidate_inodes(sb)) {
- printk("VFS: Busy inodes after unmount. "
+ printk(KERN_ERR "VFS: Busy inodes after unmount. "
"Self-destruct in 5 seconds. Have a nice day...\n");
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.036 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site