aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/resize.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-05 22:17:35 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-01-05 22:17:35 -0500
commitfde4d95ad8711c84a36735a17136c45b19746af9 (patch)
treee4d4dcaeb18083be204ba8fe55a75400ded699ae /fs/ext4/resize.c
parentfd98496f467b3d26d05ab1498f41718b5ef13de5 (diff)
ext4: remove extraneous newlines from calls to ext4_error() and ext4_warning()
This removes annoying blank syslog entries emitted by ext4_error() or ext4_warning(), since these functions add their own newline. Signed-off-by: Nick Warne <nick@ukfsn.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r--fs/ext4/resize.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 1665aa131d1..41133811744 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -762,13 +762,13 @@ int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input)
762 762
763 if (ext4_blocks_count(es) + input->blocks_count < 763 if (ext4_blocks_count(es) + input->blocks_count <
764 ext4_blocks_count(es)) { 764 ext4_blocks_count(es)) {
765 ext4_warning(sb, __func__, "blocks_count overflow\n"); 765 ext4_warning(sb, __func__, "blocks_count overflow");
766 return -EINVAL; 766 return -EINVAL;
767 } 767 }
768 768
769 if (le32_to_cpu(es->s_inodes_count) + EXT4_INODES_PER_GROUP(sb) < 769 if (le32_to_cpu(es->s_inodes_count) + EXT4_INODES_PER_GROUP(sb) <
770 le32_to_cpu(es->s_inodes_count)) { 770 le32_to_cpu(es->s_inodes_count)) {
771 ext4_warning(sb, __func__, "inodes_count overflow\n"); 771 ext4_warning(sb, __func__, "inodes_count overflow");
772 return -EINVAL; 772 return -EINVAL;
773 } 773 }
774 774
@@ -999,8 +999,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es,
999 " too large to resize to %llu blocks safely\n", 999 " too large to resize to %llu blocks safely\n",
1000 sb->s_id, n_blocks_count); 1000 sb->s_id, n_blocks_count);
1001 if (sizeof(sector_t) < 8) 1001 if (sizeof(sector_t) < 8)
1002 ext4_warning(sb, __func__, 1002 ext4_warning(sb, __func__, "CONFIG_LBD not enabled");
1003 "CONFIG_LBD not enabled\n");
1004 return -EINVAL; 1003 return -EINVAL;
1005 } 1004 }
1006 1005