diff options
author | Mingming Cao <cmm@us.ibm.com> | 2008-07-11 19:27:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-07-11 19:27:31 -0400 |
commit | 31b481dc7c249eac0a108ec5dfc0d4aef2217e39 (patch) | |
tree | 43b552863d1a94a022f5b4e9d4c8f7ec07949a09 /fs | |
parent | 69baee062a044ef1588e423e52131710e7584d1a (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/mballoc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 6280ad3829d4..d429014071c0 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -809,6 +809,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore) | |||
809 | if (!buffer_uptodate(bh[i])) | 809 | if (!buffer_uptodate(bh[i])) |
810 | goto out; | 810 | goto out; |
811 | 811 | ||
812 | err = 0; | ||
812 | first_block = page->index * blocks_per_page; | 813 | first_block = page->index * blocks_per_page; |
813 | for (i = 0; i < blocks_per_page; i++) { | 814 | for (i = 0; i < blocks_per_page; i++) { |
814 | int group; | 815 | int group; |