diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-19 09:23:09 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:57 -0400 |
commit | 59d169e2b3d69ba0beca0fa0936789080c8d61a9 (patch) | |
tree | 614d27fbac77490571cc8f24f399a6c6009b30c6 /fs/btrfs/extent_map.c | |
parent | b4a2a0edfda5a721bb4c5fa0068d2ad7ea67f98b (diff) |
Btrfs: Fix read/write_extent_buffer to use KM_USER1 instead of KM_USER0
This avoids recursive use of KM_USER0 during btrfs_file_write
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index c0f834563ced..3c81f5eab155 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -2378,9 +2378,9 @@ void read_extent_buffer(struct extent_buffer *eb, void *dstv, | |||
2378 | WARN_ON(!PageUptodate(page)); | 2378 | WARN_ON(!PageUptodate(page)); |
2379 | 2379 | ||
2380 | cur = min(len, (PAGE_CACHE_SIZE - offset)); | 2380 | cur = min(len, (PAGE_CACHE_SIZE - offset)); |
2381 | kaddr = kmap_atomic(page, KM_USER0); | 2381 | kaddr = kmap_atomic(page, KM_USER1); |
2382 | memcpy(dst, kaddr + offset, cur); | 2382 | memcpy(dst, kaddr + offset, cur); |
2383 | kunmap_atomic(kaddr, KM_USER0); | 2383 | kunmap_atomic(kaddr, KM_USER1); |
2384 | 2384 | ||
2385 | dst += cur; | 2385 | dst += cur; |
2386 | len -= cur; | 2386 | len -= cur; |
@@ -2523,9 +2523,9 @@ void write_extent_buffer(struct extent_buffer *eb, const void *srcv, | |||
2523 | WARN_ON(!PageUptodate(page)); | 2523 | WARN_ON(!PageUptodate(page)); |
2524 | 2524 | ||
2525 | cur = min(len, PAGE_CACHE_SIZE - offset); | 2525 | cur = min(len, PAGE_CACHE_SIZE - offset); |
2526 | kaddr = kmap_atomic(page, KM_USER0); | 2526 | kaddr = kmap_atomic(page, KM_USER1); |
2527 | memcpy(kaddr + offset, src, cur); | 2527 | memcpy(kaddr + offset, src, cur); |
2528 | kunmap_atomic(kaddr, KM_USER0); | 2528 | kunmap_atomic(kaddr, KM_USER1); |
2529 | 2529 | ||
2530 | src += cur; | 2530 | src += cur; |
2531 | len -= cur; | 2531 | len -= cur; |