summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-09 19:07:12 +0300
committerDavid Sterba <dsterba@suse.com>2025-01-13 16:53:16 +0300
commit78cdfba85df90fe0eb507f2fe86eba7c8f51fe4c (patch)
treeb2710140a17834dbb9c62e13b9eaa06e4560e5f1 /scripts/lib/kdoc/kdoc_files.py
parent4f000a87fbfe6522a6f43d44d1dfc6af157ce476 (diff)
downloadlinux-78cdfba85df90fe0eb507f2fe86eba7c8f51fe4c.tar.xz
btrfs: avoid redundant call to get inline ref type at check_committed_ref()
At check_committed_ref() we are calling btrfs_get_extent_inline_ref_type() twice, once before we check if have an inline extent owner ref (for simple qgroups) and then once again sometime after that check. This second call is redundant when we have simple quotas disabled or we found an inline ref that is not of the owner ref type. So avoid this second call unless we have simple quotas enabled and found an owner ref, saving a function call that does inline ref validation again. 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