提交 ff190c0c 编写于 作者: C Chris Mason

Btrfs: Avoid recursive KM_USER1 mappings in copy_extent_buffer

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册