summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-07-20 07:56:48 +0930
committerDavid Sterba <dsterba@suse.com>2025-08-07 17:07:15 +0200
commit15fc0bec883c95007a4901fe75f247bd0ca21651 (patch)
treebc57aae73933cca6f4c6e2b8ddd7ba6160651c96 /scripts/lib/kdoc/kdoc_output.py
parentad580dfa388fabb52af033e3f8cc5d04be985e54 (diff)
btrfs: make btrfs_cleanup_ordered_extents() support large folios
When hitting a large folio, btrfs_cleanup_ordered_extents() will get the same large folio multiple times, and clearing the same range again and again. Thankfully this is not causing anything wrong, just inefficiency. This is caused by the fact that we're iterating folios using the old page index, thus can hit the same large folio again and again. Enhance it by increasing @index to the index of the folio end, and only increase @index by 1 if we failed to grab a folio. Reviewed-by: Boris Burkov <boris@bur.io> 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 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions