rpms/kernel/F-10 linux-2.6-ext4-print-warning-once.patch, NONE, 1.1 kernel.spec, 1.1289, 1.1290

Chuck Ebbert cebbert at fedoraproject.org
Fri Mar 13 03:15:30 UTC 2009


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16498

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-ext4-print-warning-once.patch 
Log Message:
Add pending ext4 patch to silence fallback allocation warning message.

linux-2.6-ext4-print-warning-once.patch:

--- NEW FILE linux-2.6-ext4-print-warning-once.patch ---
From: Theodore Ts'o <tytso at mit.edu>
Date: Thu, 12 Mar 2009 16:20:01 +0000 (-0400)
Subject: ext4: Print the find_group_flex() warning only once
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftytso%2Fext4.git;a=commitdiff_plain;h=e8eb6f8319eb2536d292fc18fe14e745c970049a

ext4: Print the find_group_flex() warning only once

This is a short-term warning, and even printk_ratelimit() can result
in too much noise in system logs.  So only print it once as a warning.

Signed-off-by: "Theodore Ts'o" <tytso at mit.edu>
---

diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index 627f8c3..2d2b358 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -698,6 +698,7 @@ struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode)
 	struct inode *ret;
 	ext4_group_t i;
 	int free = 0;
+	static int once = 1;
 	ext4_group_t flex_group;
 
 	/* Cannot create files in a deleted directory */
@@ -719,7 +720,8 @@ struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode)
 		ret2 = find_group_flex(sb, dir, &group);
 		if (ret2 == -1) {
 			ret2 = find_group_other(sb, dir, &group);
-			if (ret2 == 0 && printk_ratelimit())
+			if (ret2 == 0 && once)
+				once = 0;
 				printk(KERN_NOTICE "ext4: find_group_flex "
 				       "failed, fallback succeeded dir %lu\n",
 				       dir->i_ino);


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-10/kernel.spec,v
retrieving revision 1.1289
retrieving revision 1.1290
diff -u -r1.1289 -r1.1290
--- kernel.spec	13 Mar 2009 02:17:19 -0000	1.1289
+++ kernel.spec	13 Mar 2009 03:15:00 -0000	1.1290
@@ -657,7 +657,9 @@
 # silence the ACPI blacklist code
 Patch2802: linux-2.6-silence-acpi-blacklist.patch
 
-Patch2910: linux-2.6-ext4-extent-header-check-fix.patch
+Patch2900: linux-2.6-ext4-extent-header-check-fix.patch
+Patch2902: linux-2.6-ext4-print-warning-once.patch
+
 Patch2911: linux-2.6-ext4-flush-on-close.patch
 
 Patch9001: revert-fix-modules_install-via-nfs.patch
@@ -1080,6 +1082,9 @@
 
 # ext4
 ApplyPatch linux-2.6-ext4-extent-header-check-fix.patch
+ApplyPatch linux-2.6-ext4-print-warning-once.patch
+
+# data integrity band-aid for badly written apps
 ApplyPatch linux-2.6-ext4-flush-on-close.patch
 
 # xfs
@@ -1765,6 +1770,9 @@
 %kernel_variant_files -k vmlinux %{with_kdump} kdump
 
 %changelog
+* Fri Mar 13 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.29-0.60.rc7.git5
+- Add pending ext4 patch to silence fallback allocation warning message.
+
 * Fri Mar 13 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.29-0.59.rc7.git5
 - Copy ext4 fixes from rawhide:
   linux-2.6-ext4-extent-header-check-fix.patch




More information about the fedora-extras-commits mailing list