summaryrefslogtreecommitdiff
path: root/mm/kasan
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2023-07-15 19:08:31 +0800
committerDavid Sterba <dsterba@suse.com>2023-08-21 14:52:17 +0200
commit54948681c21171a67c2fe03adcce54901e39dfe3 (patch)
tree7ee2b8091cf16f69e96d754e45ccd4b8d2cc9312 /mm/kasan
parent730c374e5b2cec061e3af7616b9d1265e60b6c0a (diff)
btrfs: refactor main loop in copy_extent_buffer_full()
[BACKGROUND] copy_extent_buffer_full() currently does different handling for regular and subpage cases, for regular cases it does a page by page copying. For subpage cases, it just copies the content. This is fine for the page based extent buffer code, but for the incoming folio conversion, it can be a burden to add a new branch just to handle all the different combinations (subpage vs regular, one single folio vs multi pages). [ENHANCE] Instead of handling the different combinations, just go one single handling for all cases, utilizing write_extent_buffer() to do the copying. Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> 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 'mm/kasan')
0 files changed, 0 insertions, 0 deletions