Fix grammar in comment.
[ext4-patch-queue.git] / ext4_mballoc_init_cache_error_fix.patch
blobaabad17b3d9afc9b2ea3bb800eb541b5e5c2d1b7
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
7 value.
9 Signed-off-by: Mingming Cao <cmm@us.ibm.com>
10 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
11 ---
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]))
21 goto out;
23 + err = 0;
24 first_block = page->index * blocks_per_page;
25 for (i = 0; i < blocks_per_page; i++) {
26 int group;