dect
/
linux-2.6
Archived
13
0
Fork 0

Btrfs: Avoid recursive KM_USER1 mappings in copy_extent_buffer

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason 2007-10-19 10:39:41 -04:00
parent 3685f79165
commit ff190c0c00
1 changed files with 2 additions and 2 deletions

View File

@ -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;