aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2011-10-26 05:00:19 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-11 09:43:53 -0800
commit6ff60a6de3b107b9c78eb10b2c9a9987bab5138c (patch)
tree1cd71a106a6b0a4ad62acbb8fb47587760770b4f /fs
parentcaf61680a4f161a4b6d1c6e734ec0fb8233d45d7 (diff)
downloadlinux-linaro-precise-6ff60a6de3b107b9c78eb10b2c9a9987bab5138c.tar.gz
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 <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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 986e2388f03..89c47f4ee00 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);