Commit d431a2cd authored by Markus Elfring's avatar Markus Elfring Committed by Theodore Ts'o
Browse files

ext4: Call ext4_journal_stop(handle) only once in ext4_dio_write_iter()



An ext4_journal_stop(handle) call was immediately used after a return value
check for a ext4_orphan_add() call in this function implementation.
Thus call such a function only once instead directly before the check.

This issue was transformed by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://patch.msgid.link/cf895072-43cf-412c-bced-8268498ad13e@web.de


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 42f7652d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment