[PATCH 2/2] [Jaunty] UBUNTU: ext4: really print the find_group_flex fallback warning only once
Leann Ogasawara
leann.ogasawara at canonical.com
Mon Aug 31 22:47:32 UTC 2009
>From 436c47f16d68fe71fc5ed1201825568ba5192e6a Mon Sep 17 00:00:00 2001
From: Chuck Ebbert <cebbert at redhat.com>
Date: Tue, 14 Apr 2009 07:37:40 -0400
Subject: [PATCH 2/2] ext4: really print the find_group_flex fallback warning only once
upstream commit 6b82f3cb2d480b7714eb0ff61aee99c22160389e
BugLink: http://bugs.launchpad.net/bugs/367065
Missing braces caused the warning to print more than once.
Signed-Off-By: Chuck Ebbert <cebbert at redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso at mit.edu>
Signed-off-by: Leann Ogasawara <leann.ogasawara at canonical.com>
---
fs/ext4/ialloc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index e04c45d..427f13e 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -706,11 +706,12 @@ 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 && 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;
}
--
1.6.3.3
More information about the kernel-team
mailing list