mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[PATCH] ext3: journal handling on error path in ext3_journalled_writepage()
This patch fixes lost referrence on ext3 current handle in ext3_journalled_writepage(). Signed-Off-By: Denis Lunev <den@sw.ru> Cc: Kirill Korotaev <dev@sw.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
b17b0421d7
commit
ab4eb43ce7
1 changed files with 3 additions and 1 deletions
|
@ -1384,8 +1384,10 @@ static int ext3_journalled_writepage(struct page *page,
|
|||
ClearPageChecked(page);
|
||||
ret = block_prepare_write(page, 0, PAGE_CACHE_SIZE,
|
||||
ext3_get_block);
|
||||
if (ret != 0)
|
||||
if (ret != 0) {
|
||||
ext3_journal_stop(handle);
|
||||
goto out_unlock;
|
||||
}
|
||||
ret = walk_page_buffers(handle, page_buffers(page), 0,
|
||||
PAGE_CACHE_SIZE, NULL, do_journal_get_write_access);
|
||||
|
||||
|
|
Loading…
Reference in a new issue