summaryrefslogtreecommitdiff
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-03-12 12:20:01 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-03-12 12:20:01 -0400
commit2842c3b5449f31470b61db716f1926b594fb6156 (patch)
treed32d76a498621a00d961273a15a6e70b7f9db78d /fs/ext4/ialloc.c
parent395a87bfefbc400011417e9eaae33169f9f036c0 (diff)
downloadlinux-3.10-2842c3b5449f31470b61db716f1926b594fb6156.tar.gz
linux-3.10-2842c3b5449f31470b61db716f1926b594fb6156.tar.bz2
linux-3.10-2842c3b5449f31470b61db716f1926b594fb6156.zip
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@mit.edu>
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r--fs/ext4/ialloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index 627f8c3337a..2d2b3585ee9 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);