Skip to content
Commit a8b3a890 authored by David Sterba's avatar David Sterba
Browse files

btrfs: scrub: remove kmap/kunmap of pages



All pages that scrub uses in the scrub_block::pagev array are allocated
with GFP_KERNEL and never part of any mapping, so kmap is not necessary,
we only need to know the page address.

In scrub_write_page_to_dev_replace we don't even need to call
flush_dcache_page because of the same reason as above.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 74ef0018
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment