diff options
author | David Sterba <dsterba@suse.com> | 2021-06-15 17:15:38 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-08-23 13:19:00 +0200 |
commit | 4c2bf276b56d8d27ddbafcdf056ef3fc60ae50b0 (patch) | |
tree | 77f7fa73f0a992b6861a7a665467afa9149d422b /fs/btrfs/inode.c | |
parent | bbaf9715f3f5b5ff0de71da91fcc34ee9c198ed8 (diff) | |
download | linux-4c2bf276b56d8d27ddbafcdf056ef3fc60ae50b0.tar.bz2 |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 06f9f167222b..c84d42a290c6 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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; |