diff options
author | 2024-12-20 09:16:31 +0800 | |
---|---|---|
committer | 2025-02-10 07:48:25 -0500 | |
commit | 982bf37da09d078570650b691d9084f43805a5de (patch) | |
tree | 5286a2c91890145708b11377923dadb62859bd01 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ext4: don't write back data before punch hole in nojournal mode (diff) | |
download | wireguard-linux-982bf37da09d078570650b691d9084f43805a5de.tar.xz wireguard-linux-982bf37da09d078570650b691d9084f43805a5de.zip |
ext4: refactor ext4_punch_hole()
The current implementation of ext4_punch_hole() contains complex
position calculations and stale error tags. To improve the code's
clarity and maintainability, it is essential to clean up the code and
improve its readability, this can be achieved by: a) simplifying and
renaming variables; b) eliminating unnecessary position calculations;
c) writing back all data in data=journal mode, and drop page cache from
the original offset to the end, rather than using aligned blocks,
d) renaming the stale error tags.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://patch.msgid.link/20241220011637.1157197-5-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions