diff options
author | Yongqiang Yang <xiaoqiangnk@gmail.com> | 2011-10-26 05:00:19 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-26 05:00:19 -0400 |
commit | fcbb5515825f1bb20b7a6f75ec48bee61416f879 (patch) | |
tree | 1fbb172370314beb24129edb3d5e481d22bf7c76 /fs/ext4/inode.c | |
parent | 6f8ff537266ee5396c920fb0c842a21df3055ff3 (diff) |
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 <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Jan Kara <jack@suse.cz>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: | |||
4791 | PAGE_CACHE_SIZE, NULL, do_journal_get_write_access)) { | 4791 | PAGE_CACHE_SIZE, NULL, do_journal_get_write_access)) { |
4792 | unlock_page(page); | 4792 | unlock_page(page); |
4793 | ret = VM_FAULT_SIGBUS; | 4793 | ret = VM_FAULT_SIGBUS; |
4794 | ext4_journal_stop(handle); | ||
4794 | goto out; | 4795 | goto out; |
4795 | } | 4796 | } |
4796 | ext4_set_inode_state(inode, EXT4_STATE_JDATA); | 4797 | ext4_set_inode_state(inode, EXT4_STATE_JDATA); |