]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: add __pure attribute to eb page and folio counters
authorDavid Sterba <dsterba@suse.com>
Tue, 25 Feb 2025 17:24:43 +0000 (18:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:47 +0000 (20:35 +0100)
commit6e7c2838632cc06b299297ee2477d05158838956
tree4a70babe05388c8ecff23f54c30d8b42edcaef29
parentb7226ce6c4193c7fe52cd1be825348b9d3fdfd56
btrfs: add __pure attribute to eb page and folio counters

The functions qualify for the pure attribute as they always return the
same value for the same argument (in the given scope). This allows to
optimize the calls and cache the value.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.h