Commit 31b481dc authored by Mingming Cao's avatar Mingming Cao Committed by Theodore Ts'o

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
Signed-off-by: default avatarMingming Cao <>
Signed-off-by: default avatar"Theodore Ts'o" <>
parent 69baee06
......@@ -809,6 +809,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
if (!buffer_uptodate(bh[i]))
goto out;
err = 0;
first_block = page->index * blocks_per_page;
for (i = 0; i < blocks_per_page; i++) {
int group;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment