rpms/kernel/F-10 linux-2.6-ext4-really-print-warning-once.patch, NONE, 1.1 kernel.spec, 1.1317, 1.1318

Chuck Ebbert cebbert at fedoraproject.org
Thu Apr 9 20:44:00 UTC 2009


Author: cebbert

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

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-ext4-really-print-warning-once.patch 
Log Message:
Only print ext4 allocator fallback warning once.

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

--- NEW FILE linux-2.6-ext4-really-print-warning-once.patch ---
ext4: really print the find_group_flex fallback warning only once

Missing braces caused the warning to print more than once.

Signed-Off-By: Chuck Ebbert <cebbert at redhat.com>

--- linux-2.6.27.noarch.orig/fs/ext4/ialloc.c
+++ linux-2.6.27.noarch/fs/ext4/ialloc.c
@@ -705,11 +705,12 @@ struct inode *ext4_new_inode(handle_t *h
 		ret2 = find_group_flex(sb, dir, &group);
 		if (ret2 == -1) {
 			ret2 = find_group_other(sb, dir, &group);
-			if (ret2 == 0 && once)
+			if (ret2 == 0 && once) {
 				once = 0;
 				printk(KERN_NOTICE "ext4: find_group_flex "
 				       "failed, fallback succeeded dir %lu\n",
 				       dir->i_ino);
+			}
 		}
 		goto got_group;
 	}


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-10/kernel.spec,v
retrieving revision 1.1317
retrieving revision 1.1318
diff -u -r1.1317 -r1.1318
--- kernel.spec	7 Apr 2009 17:24:19 -0000	1.1317
+++ kernel.spec	9 Apr 2009 20:43:30 -0000	1.1318
@@ -667,6 +667,7 @@
 Patch2900: linux-2.6-v4l-dvb-fix-uint16_t-audio-h.patch
 
 Patch2911: linux-2.6-ext4-flush-on-close.patch
+Patch2912: linux-2.6-ext4-really-print-warning-once.patch
 
 # relatime patches from 2.6.30
 Patch2920: fs-relatime-add-strictatime-option.patch
@@ -1126,6 +1127,8 @@
 # ext4
 # data integrity band-aid for badly written apps
 ApplyPatch linux-2.6-ext4-flush-on-close.patch
+# missing braces cause warning to print more than once
+ApplyPatch linux-2.6-ext4-really-print-warning-once.patch
 
 # xfs
 
@@ -1828,6 +1831,9 @@
 %kernel_variant_files -k vmlinux %{with_kdump} kdump
 
 %changelog
+* Thu Apr 09 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.29.1-18
+- Only print ext4 allocator fallback warning once.
+
 * Tue Apr 07 2009 Kyle McMartin <kyle at redhat.com>
 - linux-2.6-v4l-dvb-fix-uint16_t-audio-h.patch (#493053)
 




More information about the fedora-extras-commits mailing list