Merge tag 'fs.idmapped.helpers.v5.13' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / fs / btrfs / zlib.c
index 05615a1..d524acf 100644 (file)
@@ -432,9 +432,8 @@ int zlib_decompress(struct list_head *ws, unsigned char *data_in,
                            PAGE_SIZE - (buf_offset % PAGE_SIZE));
                bytes = min(bytes, bytes_left);
 
-               kaddr = kmap_atomic(dest_page);
-               memcpy(kaddr + pg_offset, workspace->buf + buf_offset, bytes);
-               kunmap_atomic(kaddr);
+               memcpy_to_page(dest_page, pg_offset,
+                              workspace->buf + buf_offset, bytes);
 
                pg_offset += bytes;
                bytes_left -= bytes;