ext4: Fix ext4_mb_init_cache return error

ext4_mb_init_cache() incorrectly always return EIO on success. This
causes the caller of ext4_mb_init_cache() fail when it checks the return
value.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
Mingming Cao 2008-07-11 19:27:31 -04:00 committed by Theodore Ts'o
parent 69baee062a
commit 31b481dc7c
1 changed files with 1 additions and 0 deletions

View File

@ -809,6 +809,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
if (!buffer_uptodate(bh[i])) if (!buffer_uptodate(bh[i]))
goto out; goto out;
err = 0;
first_block = page->index * blocks_per_page; first_block = page->index * blocks_per_page;
for (i = 0; i < blocks_per_page; i++) { for (i = 0; i < blocks_per_page; i++) {
int group; int group;