Skip to content

Commit

Permalink
Btrfs: Avoid recursive KM_USER1 mappings in copy_extent_buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 3685f79 commit ff190c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/extent_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff190c0

Please sign in to comment.