aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-10-19 10:39:41 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commitff190c0c004d8e51195c7bcf5a8490aeefccbce0 (patch)
tree13a5e66606cdc1cae192758420fb4516b934e2f1 /fs/btrfs/extent_map.c
parent3685f791659c9f21b763ee1702ac8ca58bc20f81 (diff)
Btrfs: Avoid recursive KM_USER1 mappings in copy_extent_buffer
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r--fs/btrfs/extent_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index caaf0bf0e059..a61379230dd2 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -2586,9 +2586,9 @@ void copy_extent_buffer(struct extent_buffer *dst, struct extent_buffer *src,
2586 2586
2587 cur = min(len, (unsigned long)(PAGE_CACHE_SIZE - offset)); 2587 cur = min(len, (unsigned long)(PAGE_CACHE_SIZE - offset));
2588 2588
2589 kaddr = kmap_atomic(page, KM_USER1); 2589 kaddr = kmap_atomic(page, KM_USER0);
2590 read_extent_buffer(src, kaddr + offset, src_offset, cur); 2590 read_extent_buffer(src, kaddr + offset, src_offset, cur);
2591 kunmap_atomic(kaddr, KM_USER1); 2591 kunmap_atomic(kaddr, KM_USER0);
2592 2592
2593 src_offset += cur; 2593 src_offset += cur;
2594 len -= cur; 2594 len -= cur;