Skip to content

Commit

Permalink
[PATCH] ext3: journal handling on error path in ext3_journalled_write…
Browse files Browse the repository at this point in the history
…page()

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>
  • Loading branch information
Denis Lunev authored and Linus Torvalds committed Nov 14, 2005
1 parent b17b042 commit ab4eb43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ab4eb43

Please sign in to comment.