aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-09-27 12:09:25 +0100
committerDavid Sterba <[email protected]>2023-10-12 16:44:14 +0200
commitb8bf4e4d6ae9bbd485321e81b76cfaf07bf5bedd (patch)
tree29c51fe2a7a3b422bba55683b034a853b9bb8f6f /scripts/gdb/linux/utils.py
parent7bff16e3ffd92ff9021938c5d0b2e9faf1c0e7e2 (diff)
btrfs: use round_down() to align block offset at btrfs_cow_block()
At btrfs_cow_block() we can use round_down() to align the extent buffer's logical offset to the start offset of a metadata block group, instead of the less easy to read set of bitwise operations (two plus one subtraction). So replace the bitwise operations with a round_down() call. Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions