summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-02-28 00:13:18 -0500
committerTheodore Ts'o <tytso@mit.edu>2023-03-23 10:06:08 -0400
commitd8be7607de039e5a477b0a5c63959d81ac052c3b (patch)
tree669d041d69e5e33f6f97a1076d8c257978081c5a /scripts/gdb/linux/utils.py
parenteaf2ca10ca4ba450f8e514cb8bfc9149660b57f6 (diff)
ext4: Move mpage_page_done() calls after error handling
In case mpage_submit_page() returns error, it doesn't really matter whether we call mpage_page_done() and then return error or whether we return directly because in that case page cleanup will be done by mpage_release_unused_pages() instead. Logically, it makes more sense to leave the cleanup to mpage_release_unused_pages() because we didn't succeed in writing the page. So move mpage_page_done() calls after the error handling. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Link: https://lore.kernel.org/r/20230228051319.4085470-7-tytso@mit.edu
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions