diff options
| author | Ira Weiny <[email protected]> | 2021-02-17 02:48:26 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-04-19 15:25:16 +0000 |
| commit | 9a002d531b30bfe81d900f61a5ca955a85fab0e6 (patch) | |
| tree | 986a63d584cc02dc61dbf6c17692a7d8d9f59cef /fs/btrfs/tree-mod-log.c | |
| parent | btrfs: integrity-checker: use kmap_local_page in __btrfsic_submit_bio (diff) | |
| download | kernel-9a002d531b30bfe81d900f61a5ca955a85fab0e6.tar.gz kernel-9a002d531b30bfe81d900f61a5ca955a85fab0e6.zip | |
btrfs: integrity-checker: convert block context kmap's to kmap_local_page
btrfsic_read_block() (which calls kmap()) and
btrfsic_release_block_ctx() (which calls kunmap()) are always called
within a single thread of execution.
Therefore the mappings created within these calls can be a thread local
mapping.
Convert the kmap() of bloc_ctx->pagev to kmap_local_page(). Luckily the
unmap loops backwards through the array pointer so no adjustment needs
to be made to the unmapping order.
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
