summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-09 18:52:13 +0300
committerDavid Sterba <dsterba@suse.com>2025-01-13 16:53:16 +0300
commit4f000a87fbfe6522a6f43d44d1dfc6af157ce476 (patch)
tree19541c19c212770f9980dd8fd6a80e21509cbbcf /scripts/lib/kdoc/kdoc_files.py
parent6c440755244e0044b3de37c3e5b334e46b4d93a6 (diff)
downloadlinux-4f000a87fbfe6522a6f43d44d1dfc6af157ce476.tar.xz
btrfs: remove the snapshot check from check_committed_ref()
At check_committed_ref() we have this check to see if the data extent was created in a generation lower than or equals to the generation where the last snapshot for the root was created, and if so we return immediately with 1, since it's very likely the extent is shared, referenced by other root. The only call chain for check_committed_ref() is the following: can_nocow_file_extent() btrfs_cross_ref_exist() check_committed_ref() And we already do that snapshot check at can_nocow_file_extent(), before we call btrfs_cross_ref_exist(). This makes the check done at check_committed_ref() redundant, so remove it. 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