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
This commit is contained in:
committed by
Theodore Ts'o
parent
6f8ff53726
commit
fcbb551582
@@ -4791,6 +4791,7 @@ retry_alloc:
|
|||||||
PAGE_CACHE_SIZE, NULL, do_journal_get_write_access)) {
|
PAGE_CACHE_SIZE, NULL, do_journal_get_write_access)) {
|
||||||
unlock_page(page);
|
unlock_page(page);
|
||||||
ret = VM_FAULT_SIGBUS;
|
ret = VM_FAULT_SIGBUS;
|
||||||
|
ext4_journal_stop(handle);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
ext4_set_inode_state(inode, EXT4_STATE_JDATA);
|
ext4_set_inode_state(inode, EXT4_STATE_JDATA);
|
||||||
|
Reference in New Issue
Block a user