Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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: default avatarMingming Cao <cmm@us.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 69baee06
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;