]> Git Repo - linux.git/blobdiff - fs/btrfs/zlib.c
mm,memory_hotplug: allocate memmap from the added memory range
[linux.git] / fs / btrfs / zlib.c
index 05615a1099dbc5f6c2267357a0a6be51a9e5097f..d524acf7b3e5700c7bb9da93149faeb6ca562435 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;
This page took 0.0262 seconds and 4 git commands to generate.