aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-01-17 11:21:38 +0000
committerDavid Sterba <[email protected]>2023-02-15 19:38:50 +0100
commit4e4488d4efd56951e6c1c0f60f1fc8e0f93b7964 (patch)
tree27f8320f6c8f194a26b81d2494ff2a73d0a15623 /scripts/bpf_doc.py
parent2b5463fcbdfb24e898916bcae2b1359042d26963 (diff)
btrfs: assert commit root semaphore is held when accessing backref cache
During fiemap, when accessing the cache that stores the sharedness of an extent, we need to either be holding a transaction handle or the commit root semaphore. I left comments about this in the comment that precedes store_backref_shared_cache() and lookup_backref_shared_cache(), but have actually not enforced it through assertions. So assert that the commit root semaphore is held if we are not holding a transaction handle. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions