KERN_INFO 2.4.19-pre2 fs

KERN_INFO 2.4.19-pre2 fs

Post by Denis Vlasenk » Tue, 12 Mar 2002 23:00:09



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

                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

                        __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

                        __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

        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

        /* 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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/