diff options
| author | Ira Weiny <[email protected]> | 2021-02-17 02:48:24 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-04-19 15:25:16 +0000 |
| commit | 94a0b58d2d3b92c72fbf1b97d9129e470c1d2175 (patch) | |
| tree | da41f1e0989122fb13f3988f1e966ee6f9240e3c /fs/btrfs/tree-mod-log.c | |
| parent | btrfs: convert kmap to kmap_local_page, simple cases (diff) | |
| download | kernel-94a0b58d2d3b92c72fbf1b97d9129e470c1d2175.tar.gz kernel-94a0b58d2d3b92c72fbf1b97d9129e470c1d2175.zip | |
btrfs: raid56: convert kmaps to kmap_local_page
These kmaps are thread local and don't need to be atomic. So they can use
the more efficient kmap_local_page(). However, the mapping of pages in
the stripes and the additional parity and qstripe pages are a bit
trickier because the unmapping must occur in the opposite order from the
mapping. Furthermore, the pointer array in __raid_recover_end_io() may
get reordered.
Convert these calls to kmap_local_page() taking care to reverse the
unmappings of any page arrays as well as being careful with the mappings
of any special pages such as the parity and qstripe pages.
Signed-off-by: Ira Weiny <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions
