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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fcbb5515825f1bb20b7a6f75ec48bee61416f879;p=linux-beck.git ext4: let ext4_page_mkwrite stop started handle in failure 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 Cc: stable@kernel.org --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 87ec615f0fd6..e4b26faac5ff 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -4791,6 +4791,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);