From: Yongqiang Yang Date: Wed, 26 Oct 2011 09:00:19 +0000 (-0400) Subject: ext4: let ext4_page_mkwrite stop started handle in failure X-Git-Tag: v3.1.1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ff60a6de3b107b9c78eb10b2c9a9987bab5138c;p=thirdparty%2Fkernel%2Fstable.git ext4: let ext4_page_mkwrite stop started handle in failure commit fcbb5515825f1bb20b7a6f75ec48bee61416f879 upstream. The started journal handle should be stopped in failure case. Signed-off-by: Yongqiang Yang Signed-off-by: "Theodore Ts'o" Acked-by: Jan Kara Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 986e2388f031d..89c47f4ee005c 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -4416,6 +4416,7 @@ retry_alloc: PAGE_CACHE_SIZE, NULL, do_journal_get_write_access)) { unlock_page(page); ret = VM_FAULT_SIGBUS; + ext4_journal_stop(handle); goto out; } ext4_set_inode_state(inode, EXT4_STATE_JDATA);