From: Chuck Ebbert Date: Tue, 2 Jun 2009 12:07:53 +0000 (-0400) Subject: ext4: really print the find_group_flex fallback warning only once X-Git-Tag: v2.6.29.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54eefd82c70ebe77f72b7891b7e1538284948c33;p=thirdparty%2Fkernel%2Fstable.git ext4: really print the find_group_flex fallback warning only once (cherry picked from commit 6b82f3cb2d480b7714eb0ff61aee99c22160389e) Missing braces caused the warning to print more than once. Signed-Off-By: Chuck Ebbert Signed-off-by: "Theodore Ts'o" Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index befd95e1f1af0..345cba1d65bcd 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -720,11 +720,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; }