]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ext4: let ext4_page_mkwrite stop started handle in failure
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 26 Oct 2011 09:00:19 +0000 (05:00 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:43:53 +0000 (09:43 -0800)
commit fcbb5515825f1bb20b7a6f75ec48bee61416f879 upstream.

The started journal handle should be stopped in failure case.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c

index 986e2388f031dd3ccb2ceec8c07d0a31b058eed1..89c47f4ee005c49cc114a98abc5ce89a8eb1f47a 100644 (file)
@@ -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);