From 3c59882398c2f70f36d812cfaaf42b6a02030ae6 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 12 Mar 2009 12:20:01 -0400 Subject: [PATCH] --- yaml --- r: 132433 b: refs/heads/master c: 2842c3b5449f31470b61db716f1926b594fb6156 h: refs/heads/master i: 132431: 0d8e57ed32ce37f901d1962d344a8e39f8e489d6 v: v3 --- [refs] | 2 +- trunk/fs/ext4/ialloc.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index ce3eab7fb1c4..e205439cfe24 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 395a87bfefbc400011417e9eaae33169f9f036c0 +refs/heads/master: 2842c3b5449f31470b61db716f1926b594fb6156 diff --git a/trunk/fs/ext4/ialloc.c b/trunk/fs/ext4/ialloc.c index 627f8c3337a3..2d2b3585ee91 100644 --- a/trunk/fs/ext4/ialloc.c +++ b/trunk/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);