diff options
author | 2024-08-20 21:22:32 +0800 | |
---|---|---|
committer | 2024-09-03 22:12:15 -0400 | |
commit | 66eafbde7d74e36cd80e6b6246ea4bd599416e2c (patch) | |
tree | e35ff384e4daf692b2190cd5c060c5cf5f480199 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ext4: remove dead check in __ext4_new_inode() (diff) | |
download | wireguard-linux-66eafbde7d74e36cd80e6b6246ea4bd599416e2c.tar.xz wireguard-linux-66eafbde7d74e36cd80e6b6246ea4bd599416e2c.zip |
ext4: move checksum length calculation of inode bitmap into ext4_inode_bitmap_csum_[verify/set]() functions
There are some little improve:
1. remove repeat code to calculate checksum length of inode bitmap
2. remove unnecessary checksum length calculation if checksum is not
enabled.
3. use more efficient bit shift operation instead of div opreation.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://patch.msgid.link/20240820132234.2759926-6-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions