summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-10-09 07:39:59 +0300
committerDavid Sterba <dsterba@suse.com>2025-11-25 00:42:22 +0300
commit17d552ab9b2be6c2c28169fcf913114f63a71a22 (patch)
tree51003a95c04711e7cd24669f2cd021dfb55c621e /tools/perf/scripts/python/flamegraph.py
parent9b3743a6760bedc783809b94aa87b9b8ef64f52b (diff)
downloadlinux-17d552ab9b2be6c2c28169fcf913114f63a71a22.tar.xz
btrfs: raid56: remove sector_ptr::has_paddr member
We can use paddr -1 as an indicator for unset/uninitialized paddr. We can not use 0 paddr, unlike virtual address 0 which is never mapped thus will always trigger a page fault, physical address 0 may be a valid page. So here we follow swiotlb to use (paddr)-1 as a special indicator for invalid/unset physical address. Even if the PFN may still be valid, our usage of the physical address should always be aligned to fs block size (or page size for bs > ps cases), thus such -1 paddr should never be a valid one. With this special -1 paddr, we can get rid of has_paddr member and save 1 byte for sector_ptr structure. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions