]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: Call ext4_journal_stop(handle) only once in ext4_dio_write_iter()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 25 Sep 2024 19:47:39 +0000 (21:47 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Oct 2024 21:42:44 +0000 (17:42 -0400)
commitd431a2cd28e8b7a91474d496e9226ef06a31c6eb
tree33835699b3c0b2b02bd9366875fa319b9725c091
parent42f7652d3eb527d03665b09edac47f85fb600924
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: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/cf895072-43cf-412c-bced-8268498ad13e@web.de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/file.c