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)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Oct 2011 09:00:19 +0000 (05:00 -0400)
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>
Cc: stable@kernel.org
fs/ext4/inode.c

index 87ec615f0fd6943ee799b40a0205879d7fa2dcbc..e4b26faac5fff0e5425a9ea453ca2341b9221e68 100644 (file)
@@ -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);
This page took 0.027041 seconds and 5 git commands to generate.