From 81850ac431d7b306027de9662996a21eda838e8f Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Wed, 6 Dec 2006 20:39:24 -0800 Subject: [PATCH] --- yaml --- r: 42913 b: refs/heads/master c: 341cee438593ff9c4520fb73c561460074f29a9a h: refs/heads/master i: 42911: 04ce238f6758404bc27f974980762f640f9febd8 v: v3 --- [refs] | 2 +- trunk/fs/ext4/balloc.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index d4baed5d19a9..b449f2ed24b5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b78a657f0a64134b3813bbdf4e1853d1420eb8d4 +refs/heads/master: 341cee438593ff9c4520fb73c561460074f29a9a diff --git a/trunk/fs/ext4/balloc.c b/trunk/fs/ext4/balloc.c index 8e7249e3e39d..1c8ef0e35f46 100644 --- a/trunk/fs/ext4/balloc.c +++ b/trunk/fs/ext4/balloc.c @@ -1529,10 +1529,8 @@ ext4_fsblk_t ext4_new_blocks(handle_t *handle, struct inode *inode, if (group_no >= ngroups) group_no = 0; gdp = ext4_get_group_desc(sb, group_no, &gdp_bh); - if (!gdp) { - *errp = -EIO; - goto out; - } + if (!gdp) + goto io_error; free_blocks = le16_to_cpu(gdp->bg_free_blocks_count); /* * skip this group if the number of