mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
btrfs: compression: drop kmap/kunmap from generic helpers
The pages in compressed_pages are not from highmem anymore so we can drop the mapping for checksum calculation and inline extent. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
bbaf9715f3
commit
4c2bf276b5
2 changed files with 2 additions and 4 deletions
|
@ -286,9 +286,8 @@ static int insert_inline_extent(struct btrfs_trans_handle *trans,
|
|||
cur_size = min_t(unsigned long, compressed_size,
|
||||
PAGE_SIZE);
|
||||
|
||||
kaddr = kmap_atomic(cpage);
|
||||
kaddr = page_address(cpage);
|
||||
write_extent_buffer(leaf, kaddr, ptr, cur_size);
|
||||
kunmap_atomic(kaddr);
|
||||
|
||||
i++;
|
||||
ptr += cur_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue