summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-10 14:41:33 +0300
committerDavid Sterba <dsterba@suse.com>2025-01-13 16:53:16 +0300
commit2747c555958448eb32fc953b28798c1b55df4e1d (patch)
tree1bcb539fb816ff0f2a7e8887e88829935056e176 /scripts/lib/kdoc/kdoc_files.py
parent9e0d43ea4e69aee29ab58f9cd8c90d2c807c862a (diff)
downloadlinux-2747c555958448eb32fc953b28798c1b55df4e1d.tar.xz
btrfs: add function comment for check_committed_ref()
There are some not immediately obvious details about the operation of check_committed_ref(), namely that when it returns 0 it must return with the path having a locked leaf from the extent tree that contains the extent's extent item, so that we can later check for delayed refs when calling check_delayed_ref() in a way that doesn't race with a task running delayed references. For similar reasons, it must also return with a locked leaf when the extent item is not found, and that leaf is where the extent item should be located, because we may have delayed references that are going to create the extent item. Also document that the function can return false positives in order to not be too slow, and that the most important is to not return false negatives. So add a function comment to check_committed_ref(). Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions