aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-02-21 09:30:08 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:00 -0400
commiteb20978f318ab5e360ef9c1b24b5dea14d0fee6a (patch)
tree80affc2b5b03c5baa97bce37a5e1b8ecbe808eb2 /fs/btrfs/file-item.c
parent55d474148982785dd8995dc690febad3a16a2c46 (diff)
Btrfs: Use KM_USERN instead of KM_IRQ during data summing
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r--fs/btrfs/file-item.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index e17cce33fe95..374d0245b29d 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -278,11 +278,11 @@ found:
278 btrfs_item_size_nr(leaf, path->slots[0])); 278 btrfs_item_size_nr(leaf, path->slots[0]));
279 eb_token = NULL; 279 eb_token = NULL;
280next_bvec: 280next_bvec:
281 data = kmap_atomic(bvec->bv_page, KM_IRQ0); 281 data = kmap_atomic(bvec->bv_page, KM_USER0);
282 csum_result = ~(u32)0; 282 csum_result = ~(u32)0;
283 csum_result = btrfs_csum_data(root, data + bvec->bv_offset, 283 csum_result = btrfs_csum_data(root, data + bvec->bv_offset,
284 csum_result, bvec->bv_len); 284 csum_result, bvec->bv_len);
285 kunmap_atomic(data, KM_IRQ0); 285 kunmap_atomic(data, KM_USER0);
286 btrfs_csum_final(csum_result, (char *)&csum_result); 286 btrfs_csum_final(csum_result, (char *)&csum_result);
287 if (csum_result == 0) { 287 if (csum_result == 0) {
288 printk("csum result is 0 for inode %lu offset %Lu\n", inode->i_ino, offset); 288 printk("csum result is 0 for inode %lu offset %Lu\n", inode->i_ino, offset);
@@ -293,12 +293,12 @@ next_bvec:
293 int err; 293 int err;
294 294
295 if (eb_token) 295 if (eb_token)
296 unmap_extent_buffer(leaf, eb_token, KM_IRQ1); 296 unmap_extent_buffer(leaf, eb_token, KM_USER1);
297 eb_token = NULL; 297 eb_token = NULL;
298 err = map_private_extent_buffer(leaf, (unsigned long)item, 298 err = map_private_extent_buffer(leaf, (unsigned long)item,
299 BTRFS_CRC32_SIZE, 299 BTRFS_CRC32_SIZE,
300 &eb_token, &eb_map, 300 &eb_token, &eb_map,
301 &map_start, &map_len, KM_IRQ1); 301 &map_start, &map_len, KM_USER1);
302 if (err) 302 if (err)
303 eb_token = NULL; 303 eb_token = NULL;
304 } 304 }
@@ -321,7 +321,7 @@ next_bvec:
321 } 321 }
322 } 322 }
323 if (eb_token) { 323 if (eb_token) {
324 unmap_extent_buffer(leaf, eb_token, KM_IRQ1); 324 unmap_extent_buffer(leaf, eb_token, KM_USER1);
325 eb_token = NULL; 325 eb_token = NULL;
326 } 326 }
327 btrfs_mark_buffer_dirty(path->nodes[0]); 327 btrfs_mark_buffer_dirty(path->nodes[0]);