summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-07-01 19:23:51 +0200
committerDavid Sterba <dsterba@suse.com>2025-07-22 00:09:21 +0200
commit58383c6866a76acb719b1f22caaba64fa4dd3f6e (patch)
treea1beb8bbde94f7df24043531328e21c761d9af16 /scripts/gdb/linux/vmalloc.py
parentd5a87dbd958398c1926dd35a328ccf89a410cbd2 (diff)
btrfs: accessors: compile-time fast path for u8
Reading/writing 1 byte (u8) is a special case compared to the others as it's always contained in the folio we find, so the split memcpy will never be needed. Turn it to a compile-time check that the memcpy part can be optimized out. The stack usage is reduced: btrfs_set_8 -16 (32 -> 16) btrfs_get_8 -16 (24 -> 8) Code size reduction: text data bss dec hex filename 1454951 115665 16088 1586704 183610 pre/btrfs.ko 1454691 115665 16088 1586444 18350c post/btrfs.ko DELTA: -260 Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions