1 ext4: Fix ext4_mb_init_cache return error
3 From: Mingming Cao <cmm@us.ibm.com>
5 ext4_mb_init_cache() incorrectly always return EIO on success. This
6 causes the caller of ext4_mb_init_cache() fail when it checks the return
9 Signed-off-by: Mingming Cao <cmm@us.ibm.com>
10 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
12 fs/ext4/mballoc.c | 1 +
13 1 file changed, 1 insertion(+)
15 Index: linux-2.6.26-rc6/fs/ext4/mballoc.c
16 ===================================================================
17 --- linux-2.6.26-rc6.orig/fs/ext4/mballoc.c 2008-06-17 10:43:23.000000000 -0700
18 +++ linux-2.6.26-rc6/fs/ext4/mballoc.c 2008-06-17 10:43:24.000000000 -0700
19 @@ -803,6 +803,7 @@ static int ext4_mb_init_cache(struct pag
20 if (!buffer_uptodate(bh[i]))
24 first_block = page->index * blocks_per_page;
25 for (i = 0; i < blocks_per_page; i++) {