aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2025-02-25 17:24:46 +0000
committerDavid Sterba <[email protected]>2025-03-18 19:35:47 +0000
commitbd06bce1b387c57210afb238e538dd4d4acb4dbc (patch)
tree0a95e5212db5c7c09e47fb33bfdd1ce33b40d027 /fs/btrfs/dev-replace.c
parentbtrfs: add __pure attribute to eb page and folio counters (diff)
downloadkernel-bd06bce1b387c57210afb238e538dd4d4acb4dbc.tar.gz
kernel-bd06bce1b387c57210afb238e538dd4d4acb4dbc.zip
btrfs: use num_extent_folios() in for loop bounds
As the helper num_extent_folios() is now __pure, we can use it in for loop without storing its value in a variable explicitly, the compiler will do this for us. The effects on btrfs.ko is -200 bytes and there are stack space savings too: btrfs_clone_extent_buffer -8 (32 -> 24) btrfs_clear_buffer_dirty -8 (48 -> 40) clear_extent_buffer_uptodate -8 (40 -> 32) set_extent_buffer_dirty -8 (32 -> 24) write_one_eb -8 (88 -> 80) set_extent_buffer_uptodate -8 (40 -> 32) read_extent_buffer_pages_nowait -16 (64 -> 48) find_extent_buffer -8 (32 -> 24) Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions