summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/interrupts.py
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-07-01 19:23:49 +0200
committerDavid Sterba <dsterba@suse.com>2025-07-22 00:09:21 +0200
commit378c95c477b4bdc3a8283ebdf3754e308bf65891 (patch)
treeecf301405ba034937b2f10d60555416b4fff390f /scripts/gdb/linux/interrupts.py
parent00c0cf844465139ee6d9b271549295da3c7822ca (diff)
btrfs: accessors: use type sizeof constants directly
Now unit_size is used only once, so use it directly in 'part' calculation. Don't cache sizeof(type) in a variable. While this is a compile-time constant, forcing the type 'int' generates worse code as it leads to additional conversion from 32 to 64 bit type on x86_64. The sizeof() is used only a few times and it does not make the code that harder to read, so use it directly and let the compiler utilize the immediate constants in the context it needs. The .ko code size slightly increases (+50) but further patches will reduce that again. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions