Commit ff190c0c authored by Chris Mason's avatar Chris Mason

Btrfs: Avoid recursive KM_USER1 mappings in copy_extent_buffer

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 3685f791
......@@ -2586,9 +2586,9 @@ void copy_extent_buffer(struct extent_buffer *dst, struct extent_buffer *src,
cur = min(len, (unsigned long)(PAGE_CACHE_SIZE - offset));
kaddr = kmap_atomic(page, KM_USER1);
kaddr = kmap_atomic(page, KM_USER0);
read_extent_buffer(src, kaddr + offset, src_offset, cur);
kunmap_atomic(kaddr, KM_USER1);
kunmap_atomic(kaddr, KM_USER0);
src_offset += cur;
len -= cur;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment